InjectedScrolling class abstract
This injected state abstracts the best practices to come out with a simple, clean, and testable approach to control Scrollable view.
- Implemented types
- Implementers
- Available extensions
Constructors
Properties
- controller → ScrollController
-
The created ScrollController
no setter
- customStatus ↔ Object?
-
Custom status of the state. Set manually to mark the state with a particular
tag to be used in your logic.
getter/setter pairinherited
- 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 listeners or not
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
- 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
snapState
→ SnapState<
double> -
A snap representation of the state
no setterinherited
- state ↔ double
-
the current fraction scroll position. It's between 0 (min) and 1 (max position)
getter/setter pair
Methods
-
addCleaner(
VoidCallback listener) → VoidCallback -
Add a callback to be executed when the state is disposed of.
inherited
-
addObserver(
{required ObserveReactiveModel listener, bool shouldAutoClean = false, bool isSideEffects = true}) → VoidCallback -
Add observer to this state.
inherited
-
cleanState(
) → void -
Clean the state
inherited
-
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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited