RefreshIndicatorMode enum

The current state of the refresh control.

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

Constants

armed → const RefreshIndicatorMode

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

const RefreshIndicatorMode(2)
done → const RefreshIndicatorMode

While the indicator is animating away after refreshing.

const RefreshIndicatorMode(4)
drag → const RefreshIndicatorMode

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

const RefreshIndicatorMode(1)
inactive → const RefreshIndicatorMode

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

const RefreshIndicatorMode(0)
refresh → const RefreshIndicatorMode

While the onRefresh task is running.

const RefreshIndicatorMode(3)
values → const List<RefreshIndicatorMode>

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

const List<RefreshIndicatorMode>

Properties

index → int

The integer index of this enum.

final
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited