elapseBlocking method
Simulates the synchronous passage of time, resulting from blocking or expensive calls.
Neither timers nor microtasks are run during this call. Upon return, the
clock
will have been advanced by duration
.
If duration
is negative, throws an ArgumentError.
Implementation
void elapseBlocking(Duration duration);