AuthTestClock class final

A mutable UTC clock for deterministic authentication tests.

Constructors

AuthTestClock(DateTime now)
Creates a clock at now.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → DateTime
Current fixture time in UTC.
no setter

Methods

advance(Duration duration) → DateTime
Moves the clock forward by duration.
call() → DateTime
Clock callback accepted by auth stores and plugins.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(DateTime value) → void
Replaces the current time with value, normalized to UTC.
toString() → String
A string representation of this object.
inherited

Operators

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