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. double? cacheExtent,
  10. int? semanticChildCount,
  11. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  12. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  13. String? restorationId,
  14. Clip clipBehavior = Clip.hardEdge,
  15. 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,
  super.cacheExtent,
  super.semanticChildCount,
  super.dragStartBehavior,
  super.keyboardDismissBehavior,
  super.restorationId,
  super.clipBehavior,
  super.hitTestBehavior,
});