DelayedCall class

The DelayedCall class is used to delay the invocation of a function by a given time.

See also: Juggler

Examples:

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

Constructors

DelayedCall(void action(), num delay, {int repeatCount = 1})
Creates a new DelayedCall.

Properties

currentTime num
The current time.
no setter
hashCode int
The hash code for this object.
no setterinherited
repeatCount int
The number of times the delayed call should be executed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalTime num
The total time of the delay.
no setter

Methods

advanceTime(num time) bool
This method is called by the Juggler with the time past since the last call.
override
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