discontinuedPackage flutter_easyrefresh has been discontinued.

RefreshMode enum

The current state of the refresh control.

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

Inheritance
Available extensions

Values

inactive → const RefreshMode

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

drag → const RefreshMode

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

armed → const RefreshMode

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

refresh → const RefreshMode

While the onRefresh task is running.

refreshed → const RefreshMode

刷新完成

done → const RefreshMode

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<RefreshMode>
A constant List of the values in this enum, in order of their declaration.