controller property Null safety

ScrollController? controller
final

An object that can be used to control the position to which this widget is scrolled.

A ScrollController serves several purposes. It can be used to control the initial scroll position (see ScrollController.initialScrollOffset). It can be used to control whether the scroll view should automatically save and restore its scroll position in the PageStorage (see ScrollController.keepScrollOffset). It can be used to read the current scroll position (see ScrollController.offset), or change it (see ScrollController.animateTo).

See also:

Implementation

final ScrollController? controller;