connectString method

void connectString(
  1. String? hostname
)

Connection methods / Connect using a host string of the form http://thehost.com:1234, port is optional. Scheme must be http or ws

Implementation

//// Connect using a host string of the form http://thehost.com:1234,
/// port is optional. Scheme must be http or ws
void connectString(String? hostname) {
  if (hostname == null) {
    throw ArgumentError.notNull('Ethereum::connectString - hostname');
  }
  final uri = Uri.parse(hostname);
  _validateUri(uri);
}