ScrollController constructor
- {double initialScrollOffset = 0.0,
- bool keepScrollOffset = true,
- String? debugLabel,
- ScrollControllerCallback? onAttach,
- ScrollControllerCallback? onDetach}
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,
this.onAttach,
this.onDetach,
}) : _initialScrollOffset = initialScrollOffset;