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);
Implements
  • Animatable

Constructors

DelayedCall(Function action, num delay, { int repeatCount: 1 })

Creates a new DelayedCall.

Properties

currentTime → num

The current time.

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
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.

read-only, inherited
totalTime → num

The total time of the delay.

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

advanceTime(num time) → bool

This method is called by the Juggler with the time past since the last call.

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