resumeEventBusSubscription method
Resumes events processing
sendAllEventsReceivedWhilePause
- flag indicating that events received while pause will be resent
Implementation
@mustCallSuper
void resumeEventBusSubscription({
bool sendAllEventsReceivedWhilePause = true,
}) {
if (!isPaused) {
return;
}
isPaused = false;
if (sendAllEventsReceivedWhilePause) {
for (final element in _eventsReceivedWhilePaused) {
_subscribers[element.runtimeType]?.call(element);
}
}
_eventsReceivedWhilePaused.clear();
}