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(Function action, num delay, {int repeatCount: 1})
Creates a new DelayedCall. [...]

Properties

currentTime num
The current time.
read-only
repeatCount int
The number of times the delayed call should be executed. [...]
read / write
totalTime num
The total time of the delay.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited