RefreshMode enum

The current state of the refresh control.

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


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.

const RefreshMode(2)
done → const RefreshMode

While the indicator is animating away after refreshing.

const RefreshMode(5)
drag → const RefreshMode

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

const RefreshMode(1)
inactive → const RefreshMode

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

const RefreshMode(0)
refresh → const RefreshMode

While the onRefresh task is running.

const RefreshMode(3)
refreshed → const RefreshMode


const RefreshMode(4)
values → const List<RefreshMode>

A constant List of the values in this enum, in order of their declaration.

const List<RefreshMode>


hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]