nio 0.0.3
nio: ^0.0.3 copied to clipboard
A powerful, developer-friendly networking layer built on top of Dio. Less code, typed results, auto auth refresh, retries, caching, offline queue — all in one. By Niral.
0.0.3 #
- Offline request queue: pluggable
OfflineQueueStorage—MemoryOfflineQueueStorage,createOfflineFileQueueStorage(VM / native; not web), or your own implementation. - New
NioErrorType.queuedOffline,OfflineQueueSettingsonNioConfig,NioOptions.queueWhenOffline,peekOfflineQueue,clearOfflineQueue,flushOfflineQueuewithOfflineFlushResult. - Each
PendingOfflineRequeststoresapiBaseUrlso replay targets the correct host. - Docs: README (pub.dev layout + offline section), example
example/example.dart. - License / metadata credit: Niral Panchal.
0.0.2 #
- Fix pub.dev scoring: point
homepage/repositoryat the real GitHub repo under NIRAL-PANCHAL/nio - Add
issue_trackerURL
0.0.1 #
- Initial release
Nioclient with GET, POST, PUT, PATCH, DELETEgetList<T>for automatic list parsingApiResult<T>sealed class withSuccess/FailureNioErrorwith typedNioErrorTypeand human-readableuserMessage- Auth interceptor: auto token attach + 401 refresh + retry
- Retry interceptor: exponential backoff for network / 5xx errors
- Cache interceptor: in-memory GET caching with TTL
- Logging interceptor: debug-only, auto-redacted auth headers
- Mock support for testing without a server
- File upload with progress tracking
- File download with progress tracking
responseExtractorfor unwrapping server response envelopes- Per-request
NioOptionswith global defaults viaNioConfig