completeErrorIfNotCompleted method

void completeErrorIfNotCompleted(
  1. Object error, [
  2. StackTrace? stackTrace
])

Implementation

void completeErrorIfNotCompleted(Object error, [StackTrace? stackTrace]) {
  if (!isCompleted) {
    completeError(error, stackTrace);
  }
}