dial method

  1. @override
Future<Socket> dial(
  1. String host,
  2. int port, {
  3. Duration? timeout,
})
override

Open a TCP connection to host:port.

Implementation

@override
Future<Socket> dial(
  String host,
  int port, {
  Duration? timeout,
}) {
  return Socket.connect(host, port, timeout: timeout);
}