flushCompleters static method Null safety
- {SBError? error}
Implementation
static void flushCompleters({SBError? error}) {
while (_queue.isNotEmpty) {
final completer = _queue.removeAt(0);
if (error != null) {
completer.completeError(error);
} else {
completer.complete();
}
}
}