FakeClock class
A monotonic fake clock (milliseconds) advanced explicitly or by a sleep.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
advance(
Duration by) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
nowMs(
) → int -
sleep(
Duration duration) → Future< void> -
A
sleepthat advances this clock and completes immediately — lets budget tests exercise real timing math with no wall-clock wait. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited