connectionTimeout property

Duration? get connectionTimeout
inherited

Gets and sets the connection timeout.

When connecting to a new host exceeds this timeout, a SocketException is thrown. The timeout applies only to connections initiated after the timeout is set.

When this is null, the OS default timeout is used. The default is null.

Implementation

Duration? connectionTimeout;
  1. @override
set connectionTimeout (Duration? _connectionTimeout)
override

Gets and sets the connection timeout.

When connecting to a new host exceeds this timeout, a SocketException is thrown. The timeout applies only to connections initiated after the timeout is set.

When this is null, the OS default timeout is used. The default is null.

Implementation

@override
set connectionTimeout(Duration? _connectionTimeout) => super.noSuchMethod(
      Invocation.setter(
        #connectionTimeout,
        _connectionTimeout,
      ),
      returnValueForMissingStub: null,
    );