DelayedAction class

A reusable Timer and callback which allows for immediate execution (doNow), cancelling (cancel) and throttled timer starting.

Constructors

DelayedAction(Duration _duration, Callback _callback)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Cancels the timer.
doNow() → void
Calls the callback immediately and cancels the timer if started.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restart() Future<bool>
Convenience method for calling cancel and start.
start() Future<bool>
Starts the timer, if it is not already started.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited