api_manager 0.1.9 api_manager: ^0.1.9 copied to clipboard
A simple package for manage api request easily with the help of flutter dio api.
api_manager #
A simple flutter API to manage rest api request easily with the help of flutter dio.
Get started #
Install #
Add dependency #
dependencies:
api_manager: $latest_version
Super simple to use #
import 'package:api_manager/api_manager.dart';
void main() async {
ApiManager _apiManager = ApiManager();
_apiManager.options.baseUrl = "your base url";
ApiResponse<Map<String, dynamic>> response = await _apiManager.request(
requestType: RequestType.GET,
route: "your route",
);
print(response);
}