RequestTimeout class

Annotations
  • @immutable

Constructors

RequestTimeout({int? sendTimeout, int? connectTimeout, int? receiveTimeout})
const
RequestTimeout.fromDuration({Duration? sendTimeout, Duration? connectTimeout, Duration? receiveTimeout})
factory

Properties

connectTimeout int?
Timeout in milliseconds for opening url. Dio will throw the DioError with DioErrorType.connectionTimeout type when time out.
final
hashCode int
The hash code for this object.
no setterinherited
receiveTimeout int?
Timeout in milliseconds for receiving data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout int?
Timeout in milliseconds for sending data. Dio will throw the DioError with DioErrorType.sendTimeout type when time out.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited