scrollPosition property
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:
- ScrollPosition.pixels, from where this value is usually taken.
Implementation
double? get scrollPosition => _scrollPosition;
Implementation
set scrollPosition(double? value) {
assert(value != null);
_scrollPosition = value;
_hasBeenAnnotated = true;
}