completeSafe method
Checks if isCompleted is true, before calling complete.
Implementation
void completeSafe([FutureOr<T>? value]) {
if (isCompleted) return;
complete(value);
}
Checks if isCompleted is true, before calling complete.
void completeSafe([FutureOr<T>? value]) {
if (isCompleted) return;
complete(value);
}