ElapsedTimer class

A non-periodic timer which knows how long it's been running.

Implemented types

Constructors

ElapsedTimer.new(Duration duration, void callback())
Creates new ElapsedTimer

Properties

elapsed Duration
How long the timer has been running
no setter
hashCode int
The hash code for this object.
no setterinherited
isActive bool
Returns whether the timer is still active.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tick int
The count of intervals leading up to the latest timer event in the current countdown.
no setteroverride

Methods

cancel() → void
Cancels the timer.
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