ScrollController constructor

ScrollController({double initialScrollOffset: 0.0, bool keepScrollOffset: true, String debugLabel })

Creates a controller for a scrollable widget.

The values of initialScrollOffset and keepScrollOffset must not be null.

Implementation

ScrollController({
  double initialScrollOffset = 0.0,
  this.keepScrollOffset = true,
  this.debugLabel,
}) : assert(initialScrollOffset != null),
     assert(keepScrollOffset != null),
     _initialScrollOffset = initialScrollOffset;