IndicatorController class

Inheritance

Constructors

IndicatorController({bool? refreshEnabled})
Creates CustomRefreshIndicator controller class
factory

Properties

direction AxisDirection
The direction in which list scrolls
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isArmed bool
no setter
isComplete bool
no setter
isDragging bool
no setter
isHiding bool
no setter
isHorizontalDirection bool
Whether list scrolls horrizontally
no setter
isIdle bool
no setter
isLoading bool
no setter
isRefreshEnabled bool
Whether custom refresh indicator can change IndicatorState from idle to dragging
no setter
isScrollIdle bool
No scrolling is underway.
no setter
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
isVerticalDirection bool
Whether list scrolls vertically
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollingDirection ScrollDirection
Direction in which user is scrolling
no setter
state IndicatorState
Describes current CustomRefreshIndicator state
no setter
value double
Current indicator value / progress
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
disableRefresh() → void
Disables list pull to refresh
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
enableRefresh() → void
Enables list pull to refresh
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setAxisDirection(AxisDirection direction) → void
Sets the direction in which list scrolls
setIndicatorState(IndicatorState newState) → void
sets indicator state and notifies listeners
setScrollingDirection(ScrollDirection userScrollDirection) → void
setValue(double value) → void
stopDrag() → void
toString() String
A string representation of this object.
inherited

Operators

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