ScrollController constructor
- double initialScrollOffset = 0.0,
- bool keepScrollOffset = true,
- String? debugLabel,
- ScrollControllerCallback? onAttach,
- ScrollControllerCallback? onDetach,
Creates a controller for a scrollable widget.
Implementation
ScrollController({
double initialScrollOffset = 0.0,
this.keepScrollOffset = true,
this.debugLabel,
this.onAttach,
this.onDetach,
}) : _initialScrollOffset = initialScrollOffset {
if (kFlutterMemoryAllocationsEnabled) {
ChangeNotifier.maybeDispatchObjectCreation(this);
}
}