AdjustableTimeProvider constructor

AdjustableTimeProvider({
  1. required int initialEpochSeconds,
})

Creates an adjustable provider at the given initialEpochSeconds (UTC).

HINT: Provide a deterministic fixed value in tests.

Implementation

AdjustableTimeProvider({required int initialEpochSeconds}) : _epochSeconds = _requireNonNegative(initialEpochSeconds);