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,
  13. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
})

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,
  this.hitTestBehavior = HitTestBehavior.opaque,
}) : assert(semanticChildCount == null || semanticChildCount >= 0);