discontinuedPackage flutter_easyrefresh has been discontinued.

LoadMode enum

The current state of the refresh control.

Passed into the LoadControlBuilder builder function so users can show different UI in different modes.

Inheritance
Available extensions

Values

inactive → const LoadMode

Initial state, when not being overscrolled into, or after the overscroll is canceled or after done and the sliver retracted away.

drag → const LoadMode

While being overscrolled but not far enough yet to trigger the refresh.

armed → const LoadMode

Dragged far enough that the onLoad callback will run and the dragged displacement is not yet at the final refresh resting state.

load → const LoadMode

While the onLoad task is running.

loaded → const LoadMode

刷新完成

done → const LoadMode

While the indicator is animating away after refreshing.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<LoadMode>
A constant List of the values in this enum, in order of their declaration.