completeIfNotCompleted method

void completeIfNotCompleted([
  1. FutureOr<T>? value
])

Implementation

void completeIfNotCompleted([FutureOr<T>? value]) {
  if (!isCompleted) {
    complete(value);
  }
}