FixedDpopClock class final

A DpopClock that returns a fixed, settable time instead of the system clock - makes expiry/clock-skew behaviour deterministic in tests.

Implemented types

Constructors

FixedDpopClock(DateTime time)
Creates a clock starting at time.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
time ↔ DateTime
The time this clock currently reports from now.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
now() → DateTime
Returns the current UTC time.
override
toString() → String
A string representation of this object.
inherited

Operators

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