dio_offline_queue library

A robust, customizable Dio interceptor that queues failed requests during offline periods and replays them automatically when connectivity is restored.

Classes

ConnectivityPlusObserver
Default implementation of NetworkObserver using the connectivity_plus package.
DefaultRetryPolicy
Sensible default implementation of RetryPolicy.
InMemoryQueueStorage
A simple in-memory implementation of QueueStorage. Note: Data will be lost when the app is closed.
NetworkObserver
Interface for observing network connectivity status.
OfflineQueueInterceptor
Dio interceptor that catches failed requests due to offline status and queues them.
OfflineQueueManager
Manages the queue of offline requests and orchestrates their replay.
QueuedRequest
Represents a network request that has been queued for offline replay.
QueueStorage
Interface for persistent storage of queued requests.
RetryPolicy
Interface for defining the logic of when and how to retry requests.