set method
Sets the clock to time. Asserts that the new value is at
least as large as the current value.
Implementation
void set(Duration time) {
assert(
time >= _now,
'FakeClock.set requires the new time to be >= current; '
'monotonic time cannot move backwards.',
);
_now = time;
}