FakeStemClock class
Controllable clock for deterministic testing.
Constructors
- FakeStemClock(DateTime initial)
-
Creates a fake clock initialized to
initial.
Properties
- currentTime ↔ DateTime
-
Current instant returned by now.
getter/setter pair
- 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 duration) → void -
Advances the fake clock by
duration. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
now(
) → DateTime -
Returns the current instant.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited