handleError method

void handleError(
  1. Object e, {
  2. bool keepOpen = false,
  3. StackTrace? st,
})

Implementation

void handleError(Object e, {bool keepOpen = false, StackTrace? st}) {
  if (_completer.isCompleted == true) {
    //_log.warning('Ignoring error because no response', e, st);
  } else {
    _completer.completeError(e, st);
  }
  if (!keepOpen) {
    close();
  }
}