FakeClock class final
A Clock whose time only changes when a test says so. Tests only.
- Implemented types
Properties
Methods
-
advance(
Duration duration) → void -
Moves the clock forward by
duration. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
now(
) → DateTime -
The current instant.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited