DelayedActionHandler class

A utility class that handles the execution of a delayed action.

Constructors

DelayedActionHandler(Duration delay)
Creates a new instance of DelayedActionHandler with the given delay.

Properties

delay Duration
The delay before the action is executed.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelDelayed() → void
Cancels any scheduled action.
executeDelayed(dynamic action()) → void
Executes the given action after the specified delay.
isActionScheduled() bool
Returns true if an action is currently scheduled, otherwise false.
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