scrollPosition property

double scrollPosition

Indicates the current scrolling position in logical pixels if the node is scrollable.

The properties scrollExtentMin and scrollExtentMax indicate the valid in-range values for this property. The value for scrollPosition may (temporarily) be outside that range, e.g. during an overscroll.

See also:

Implementation

double get scrollPosition => _scrollPosition;
void scrollPosition= (double value)

Implementation

set scrollPosition(double value) {
  assert(value != null);
  _scrollPosition = value;
  _hasBeenAnnotated = true;
}