dio_network_toolkit 1.0.2
dio_network_toolkit: ^1.0.2 copied to clipboard
Production-ready network layer for Flutter & Dart with auth refresh, smart retry, offline queue, response cache, deduplication, and upload progress using sealed Result types.
1.0.2 #
- Shorten package description to meet pub.dev conventions
- Bump
diolower bound to^5.5.0(fixesDioMediaTypeavailability at lower bounds) - Bump
connectivity_plusto^7.0.0 - Bump minimum Dart SDK to
>=3.2.0and Flutter to>=3.19.0
1.0.1 #
- Fix repository URLs in pubspec to match GitHub repo
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