Google is committed to advancing racial equity for Black communities. See how.

proxyError method

void proxyError (String message)

Complete the error future with the given message.

Implementation

void proxyError(String message) {
  final fullMessage =
      'Error in proxy with interface name [${$interfaceName}] and '
      'service name [${$serviceName}]: $message';
  print(fullMessage);
  if (!_errorCompleter.isCompleted) {
    error.whenComplete(() {
      _errorCompleter = Completer<ProxyError>();
    });
    _errorCompleter.complete(ProxyError(fullMessage));
  }
}