elapseBlocking abstract method

void elapseBlocking(
  1. Duration duration
)

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);