waitForConnection method

Future<void> waitForConnection()

Waits for a connection to be established.

Implementation

Future<void> waitForConnection() {
  _connectionCompleter = Completer();
  return _connectionCompleter!.future;
}