ProgressGracePeriod class final
Tracks elapsed time and progress display state to debounce initial spinners across a group of related operations.
Constructors
- ProgressGracePeriod({Duration defaultGracePeriod = const Duration(milliseconds: 500), Stopwatch? stopwatch, bool hasShownProgress = false})
-
Creates a ProgressGracePeriod with an optional
defaultGracePeriod.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasShownProgress → bool
-
Whether a progress message has been displayed since the last reset.
no setter
- remainingDelay → Duration
-
Calculates the effective delay before transient progress should appear.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
markProgressShown(
) → void - Marks that progress has been shown.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets the grace period timer and progress flag.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited