InjectedScrolling class abstract

Injected a ScrollController

Constructors

InjectedScrolling()

Properties

autoDisposeWhenNotUsed bool
no setterinherited
controller ScrollController
The created ScrollController
no setter
error → dynamic
The error
no setterinherited
hasData bool
The state is mutated successfully.
no setterinherited
hasEndedScrolling bool
The scrolling list has just ended scrolling.
getter/setter pair
hasError bool
The stats has error
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasObservers bool
Whether the state has observers
no setterinherited
hasReachedMaxExtent bool
The scroll list has reached its bottom (the current offset is greater or equal then maxScrollExtent)
getter/setter pair
hasReachedMinExtent bool
The scroll list has reached its top (the current offset is less or equal then minScrollExtent)
getter/setter pair
hasStartedScrolling bool
This scrolling list has just started scrolling.
getter/setter pair
hasStartedScrollingForward bool
The scrolling list has just started scrolling in the forward direction.
getter/setter pair
hasStartedScrollingReverse bool
The scrolling list has just started scrolling in the reverse direction.
getter/setter pair
isActive bool
Whether the state is active or not.
no setterinherited
isDone bool
The state is mutated using a stream and the stream is done.
no setterinherited
isIdle bool
The state is initialized and never mutated.
no setterinherited
isScrolling bool
Whether the associates Scroll view is scrolling.
getter/setter pair
isScrollingForward bool
Scrolling is happening in the positive scroll offset direction.
no setter
isScrollingReverse bool
Scrolling is happening in the negative scroll offset direction.
no setter
isWaiting bool
The state is waiting for and asynchronous task to end.
no setterinherited
maxScrollExtent double
The maximum in-range value for pixels.
no setter
minScrollExtent double
The minimum in-range value for pixels.
no setter
offset double
The current offset
no setter
oldSnapState SnapState<double>
no setterinherited
rebuild → _RebuildScrolling
Listen to the InjectedScrolling and rebuild when scrolling data is changed.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapState SnapState<double>
A snap representation of the state
getter/setter pairinherited
state double
getter/setter pairinherited-getter
stateAsync Future<double>
It is a future of the state. The future is active if the state is on the isWaiting status.
no setterinherited

Methods

dispose() → void
Dispose the state.
inherited
moveTo(double to, {Duration? duration, Curve? curve, bool? clamp = true}) Future<void>
Calls ScrollPosition.jumpTo if duration is null or Duration.zero, otherwise ScrollPosition.animateTo is called.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
Notify observers
inherited
onAll<R>({R onIdle()?, required R onWaiting()?, required R onError(dynamic error, VoidCallback refreshError)?, required R onData(double data)}) → R
inherited
onOrElse<R>({R onIdle()?, R onWaiting()?, R onError(dynamic error, VoidCallback refreshError)?, R onData(double data)?, required R orElse(double data)}) → R
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited