Timer class

Simple utility class that helps handling time counting and implementing interval like events.

Constructors

Timer(double _limit, {bool repeat: false, void callback()})

Properties

current double
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
progress double
A value between 0 and 1 indicating the timer progress
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

isFinished() bool
isRunning() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
start() → void
stop() → void
toString() String
Returns a string representation of this object.
inherited
update(double dt) → void

Operators

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