Clock class

Constructors

Clock()
const

Properties

now DateTime
The current time.
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

sleep([Duration interval = defaultInterval]) Future<void>
Sleep for the specified time.
waitFor<T>(FutureOr<T> condition(), {dynamic matcher, Duration timeout: defaultTimeout, Duration interval: defaultInterval}) Future<T>
Waits until condition evaluates to a value that matches matcher or until timeout time has passed. If condition returns a Future, then uses the value of that Future rather than the value of condition. [...]
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