DioConnectivityRequestRetrier class
Dio Connectivity Request Retrier This class is responsible for retrying failed requests when the device regains internet connectivity.
Handles retrying network requests when connectivity is restored.
Constructors
- DioConnectivityRequestRetrier({required Dio dio, required Connectivity connectivity})
-
Creates an instance of
DioConnectivityRequestRetrier
.
Properties
- connectivity → Connectivity
-
The Connectivity instance to listen for network changes.
final
- dio → Dio
-
The Dio instance used to retry requests.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scheduleRequestRetry(
RequestOptions requestOptions) → Future< Response> - Schedules a request retry when internet connectivity is restored.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited