sendTimeout property

Duration? get sendTimeout

Timeout when sending data.

Throws the DioException with DioExceptionType.sendTimeout type when timed out.

null or Duration.zero means no timeout limit.

Implementation

Duration? get sendTimeout => _sendTimeout;
set sendTimeout (Duration? value)

Implementation

set sendTimeout(Duration? value) {
  if (value != null && value.isNegative) {
    throw ArgumentError.value(value, 'sendTimeout', 'should be positive');
  }
  _sendTimeout = value;
}