ScrollController constructor Null safety
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;