dio_network_toolkit 1.0.0
dio_network_toolkit: ^1.0.0 copied to clipboard
Production-ready network layer for Flutter & Dart. Auth refresh, smart retry, offline queue, response cache, request deduplication, cancel management, upload progress — all zero-boilerplate with seale [...]
1.0.0 #
- Initial release
- Sealed
Result<T>type withSuccessandFailure NetworkToolkit— unified API client with GET, POST, PUT, PATCH, DELETE, getList, rawAuthInterceptor— token injection + automatic 401 refresh with request queuingRetryInterceptor— exponential backoff + jitter, Retry-After supportConnectivityInterceptor— fail-fast offline detectionCacheInterceptor— in-memory GET cache (networkFirst, cacheFirst, staleWhileRevalidate)DedupInterceptor— request deduplication for identical in-flight GETsPrettyLogInterceptor— structured debug-only loggingOfflineRequestQueue— queue mutations when offline, auto-replay on reconnectCancelTokenManager— lifecycle-aware cancel token managementUploadManager— single file, multi-file, and bytes upload with progressNetworkToolkitFactory— multi-base-URL supportResultExtensions— mapSuccess, flatMap, dataOr, onSuccess, onFailure