transformTimeout property

Duration? get transformTimeout

Timeout when transforming response data.

Throws the DioException with DioExceptionType.transformTimeout type when timed out. On web, timeout handling is best-effort because synchronous JavaScript work cannot be preempted.

null or Duration.zero means no timeout limit.

Implementation

Duration? get transformTimeout => _transformTimeout;
set transformTimeout (Duration? value)

Implementation

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