Clock class

Constructors

Clock()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
now DateTime
The current time.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sleep([Duration interval = defaultInterval]) Future<void>
Sleep for the specified time.
toString() String
A string representation of this object.
inherited
waitFor<T>(FutureOr<T> condition(), {Object? 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.

Operators

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