socketStartConnect method
Asynchronously returns a ConnectionTask that connects to the given host and port when successful.
When this override is installed, this functions overrides the behavior of
Socket.startConnect(...)
.
Implementation
Future<ConnectionTask<Socket>> socketStartConnect(
host,
int port, {
sourceAddress,
int sourcePort = 0,
}) {
return Socket._startConnect(
host,
port,
sourceAddress: sourceAddress,
sourcePort: sourcePort,
);
}