simple_api_service 0.0.2 copy "simple_api_service: ^0.0.2" to clipboard
simple_api_service: ^0.0.2 copied to clipboard

A robust Dart package for managing API calls with a built-in request queue, unified responses, and flexible error handling.

Please find Documentation Here #

https://devesh12335.github.io/simple_api_service/

Simple API Service

Features Installation Usage Demo Contributing

A Simple, Robust API Service for Dart #

A robust Dart package for managing API calls with a built-in request queue, unified responses, and flexible error handling.

Core Features #

⚙️

Singleton Pattern #

Ensures one and only one instance of the service, providing a single, global point of access to your API client.

🚦

Request Queuing #

Automatically processes API calls sequentially, preventing race conditions and simplifying state management.

⚠️

Custom Error Handling #

A flexible `ErrorHandler` callback allows you to implement app-wide error logic in one central place.

📦

Unified API Response #

All calls return a consistent `ApiResponse` object, simplifying how you handle success, failure, and data.

Installation #

Get started by adding the package to your `pubspec.yaml` file and running `dart pub get`.

dependencies:
  simple_api_service: ^0.0.1

Contributing #


Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request on the GitHub repository.

GitHub Repository Issue Tracker

This package is maintained by Devesh Kharade

1
likes
150
points
7
downloads

Documentation

API reference

Publisher

verified publisherdevesh-kharade.xo.je

Weekly Downloads

A robust Dart package for managing API calls with a built-in request queue, unified responses, and flexible error handling.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio

More

Packages that depend on simple_api_service