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}
)

Creates a widget that scrolls.

The axisDirection and viewportBuilder arguments must not be null.

Implementation

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