Clock.fixed constructor

Clock.fixed(
  1. DateTime time
)

Creates Clock that returns fixed time value. Useful in unit-tests.

Implementation

Clock.fixed(DateTime time) : _time = (() => time);