The DelayedCall class is used to delay the invocation of a function by a given time.
See also: Juggler
var action = () => print("Hello world!"); var delayedCall = new DelayedCall(action, 1.0); juggler.add(delayedCall); var action = () => print("Hello world!"); juggler.delayCall(action, 1.0);
- Implemented types
- currentTime → num
The current time.
- hashCode → int
The hash code for this object. [...]
- repeatCount ↔ int
The number of times the delayed call should be executed. [...]
read / write
- runtimeType → Type
A representation of the runtime type of the object.
- totalTime → num
The total time of the delay.
num time) → bool
This method is called by the Juggler with the
timepast since the last call. [...]override
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.