easy_api_kit 1.0.0
easy_api_kit: ^1.0.0 copied to clipboard
A production-ready, easy-to-use Flutter & Dart API networking package with advanced error handling, logging, multipart uploads, and model parsing.
CHANGELOG #
1.0.0 #
- Initial release of EasyApiKit.
- Clean 1-line HTTP methods:
get,post,put,patch,delete,head,options,form,multipart,upload,download,paginate, andsafeGet. - Strongly typed model parsing (
User.fromJson) for single models and lists. - Detailed terminal model parse error diagnostics (
ParsingError) with expected vs received field types. - Multipart upload support for single/multiple files, bytes, disk paths, and field naming strategies (
arraySuffix,repeatKey,indexed). - In-memory response caching with
CachePolicy(cacheFirst,networkFirst,cacheOnly,staleWhileRevalidate,networkOnly). - Functional pattern-matched
ApiResulttype (ApiSuccess/ApiFailure) with.when(). - Direct-to-disk file streaming downloads with real-time progress callbacks.
- Pagination helper (
PaginationResult&PaginationParser). - Built-in
AuthInterceptorwith automated 401 token refresh retries. - Configurable retry policies with exponential backoff.
- In-flight request cancellation using
CancellationToken. - Flutter reactive state management helper
EasyApiController/ApiRequestController. - Terminal box logger with automatic sensitive data masking (
Authorization,password,tokens).