Clock class abstract interface

Time source used throughout OmnyHub so tests can fix now.

Heartbeat watchdogs, renewal schedulers and timeouts depend on a Clock rather than calling DateTime.now directly, which keeps their behaviour deterministic under test.

Implementers

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
now() DateTime
The current instant, in UTC.
toString() String
A string representation of this object.
inherited

Operators

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