connectTimeout property
The timeout after the connection attempt is assumed to be failing. Fractional seconds will be omitted. Value is applied only on new connections.
Implementation
Duration connectTimeout = Duration(seconds: 15);
The timeout after the connection attempt is assumed to be failing. Fractional seconds will be omitted. Value is applied only on new connections.
Duration connectTimeout = Duration(seconds: 15);