BoxScrollView constructor

const BoxScrollView({
  1. Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. bool shrinkWrap = false,
  8. EdgeInsetsGeometry? padding,
  9. @Deprecated('Use scrollCacheExtent instead. ' 'This feature was deprecated after v3.41.0-0.0.pre.') double? cacheExtent,
  10. ScrollCacheExtent? scrollCacheExtent,
  11. int? semanticChildCount,
  12. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  13. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  14. String? restorationId,
  15. Clip clipBehavior = Clip.hardEdge,
  16. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
})

Creates a ScrollView uses a single child layout model.

If the primary argument is true, the controller must be null.

Implementation

const BoxScrollView({
  super.key,
  super.scrollDirection,
  super.reverse,
  super.controller,
  super.primary,
  super.physics,
  super.shrinkWrap,
  this.padding,
  @Deprecated(
    'Use scrollCacheExtent instead. '
    'This feature was deprecated after v3.41.0-0.0.pre.',
  )
  super.cacheExtent,
  super.scrollCacheExtent,
  super.semanticChildCount,
  super.dragStartBehavior,
  super.keyboardDismissBehavior,
  super.restorationId,
  super.clipBehavior,
  super.hitTestBehavior,
});