Scrollable constructor

const Scrollable(
  1. {Key? key,
  2. AxisDirection axisDirection = AxisDirection.down,
  3. ScrollController? controller,
  4. ScrollPhysics? physics,
  5. required ViewportBuilder viewportBuilder,
  6. ScrollIncrementCalculator? incrementCalculator,
  7. bool excludeFromSemantics = false,
  8. int? semanticChildCount,
  9. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  10. String? restorationId,
  11. ScrollBehavior? scrollBehavior,
  12. Clip clipBehavior = Clip.hardEdge}
)

Creates a widget that scrolls.

Implementation

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