clearCompleters method Null safety
- {Error? error}
Implementation
void clearCompleters({Error? error}) {
_completers.forEach((key, value) {
if (error != null) {
value.completeError(error);
} else {
value.complete();
}
});
_completers.removeWhere((key, value) => true);
}