RefreshIndicatorDurations class

Encapsulates the duration of various phases of the refresh indicator's animation.

The durations defined within are used to control how long each respective phase lasts, allowing for customization of the refresh indicator's behavior.

Constructors

RefreshIndicatorDurations({Duration cancelDuration = const Duration(milliseconds: 300), Duration settleDuration = const Duration(milliseconds: 150), Duration finalizeDuration = const Duration(milliseconds: 100), Duration? completeDuration})
Constructs a RefreshIndicatorDurations with the specified durations.
const

Properties

cancelDuration Duration
Duration of hiding the indicator when dragging was stopped before the indicator was armed (the onRefresh callback was not called).
final
completeDuration Duration?
Duration for which the indicator remains at value of 1.0 and IndicatorState.complete state after the onRefresh function completes.
final
finalizeDuration Duration
Duration of hiding the pointer after the onRefresh function completes.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settleDuration Duration
The time of settling the pointer on the target location after releasing the pointer in the armed state.
final

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