advanceAll method
void
advanceAll()
Advances the time as far as possible and execute all existing and new pending actions on the way.
Implementation
void advanceAll() {
while (scheduled.isNotEmpty) {
_currentTime = scheduled.firstKey() ?? _currentTime;
flush();
}
}