forwardError method

void forwardError(
  1. dynamic e, {
  2. bool keepOpen = false,
  3. dynamic st,
})

Forwards error

Implementation

void forwardError(e, {bool keepOpen = false, st}) {
  if (_completer.isCompleted == false) {
    _completer.completeError(e, st);
  }

  if (keepOpen == false) {
    close();
  }
}