FakeClock constructor

FakeClock({
  1. DateTime? start,
})

Creates a clock starting at start, or at an arbitrary fixed instant.

Implementation

FakeClock({DateTime? start}) : _now = start ?? DateTime.utc(2026);