state property

double get state
inherited

the current fraction scroll position. It's between 0 (min) and 1 (max position)

Implementation

double get state => snapState.state;
  1. @override
set state (double s)
override

Sync state mutation.

Use setState for more options

See: stateAsync for async state mutation

Implementation

@override
set state(double s) {
  assert(s >= 0 && s <= 1);
  if (_controller == null) return;
  moveTo(position.maxScrollExtent * s);
  // super.state = s;
}