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
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, otherwisefalse
. -
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