Clock.fixed constructor

Clock.fixed(DateTime time)

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

Implementation

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