TimeoutOptions class final
Class of configuration options to throw a timeout exception during a HTTP request.
Constructors
- TimeoutOptions({Duration connectTimeout = const Duration(seconds: 3), Duration receiveTimeout = const Duration(seconds: 12), Duration sendTimeout = const Duration(seconds: 9)})
-
const
Properties
- connectTimeout → Duration
-
The timeout duration to connect to the server.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- receiveTimeout → Duration
-
The timeout duration to receive data from the server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration
-
The timeout duration to send data to the server.
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