SheetScrollable constructor

const SheetScrollable({
  1. Key? key,
  2. AxisDirection axisDirection = AxisDirection.down,
  3. SheetController? controller,
  4. ScrollPhysics? physics,
  5. required ViewportBuilder viewportBuilder,
  6. bool excludeFromSemantics = false,
  7. int? semanticChildCount,
  8. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  9. String? restorationId,
  10. SheetBehavior? scrollBehavior,
  11. double? initialExtent,
  12. double minInteractionExtent = 0,
})

Creates a widget that scrolls.

The axisDirection and viewportBuilder arguments must not be null.

Implementation

const SheetScrollable({
  super.key,
  this.axisDirection = AxisDirection.down,
  this.controller,
  this.physics,
  required this.viewportBuilder,
  this.excludeFromSemantics = false,
  this.semanticChildCount,
  this.dragStartBehavior = DragStartBehavior.start,
  this.restorationId,
  this.scrollBehavior,
  this.initialExtent,
  this.minInteractionExtent = 0,
}) : assert(semanticChildCount == null || semanticChildCount >= 0);