microtaskCount property

int get microtaskCount

The number of pending microtasks scheduled within a call to run or fakeAsync.

Implementation

int get microtaskCount => _microtasks.length;