connectString method

void connectString(
  1. String? hostname
)

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

Implementation

void connectString(String? hostname) {
  if (hostname == null) {
    throw ArgumentError.notNull('Ethereum::connectString - hostname');
  }
  final uri = Uri.parse(hostname);
  _validateUri(uri);
}