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.
- repeatCount ↔ int
The number of times the delayed call should be executed. [...]
read / write
- totalTime → num
The total time of the delay.
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
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.