api_manager 0.1.9 copy "api_manager: ^0.1.9" to clipboard
api_manager: ^0.1.9 copied to clipboard

outdated

A simple package for manage api request easily with the help of flutter dio api.

example/example.dart

import 'package:api_manager/api_manager.dart';

void main() async {
  ApiManager _apiManager = ApiManager();
  _apiManager.options.baseUrl = $base_url;
  _apiManager.responseBodyWrapper("data");

  ApiResponse<List<dynamic>> response = await _apiManager.request(
    requestType: RequestType.GET,
    route: $route,
    responseBodySerializer: (jsonMap) {
      return jsonMap as List;
    },
//    requestParams: {'access_token': '$access_token'},
  );
  print(response);
}
24
likes
0
pub points
65%
popularity

Publisher

verified publisherdeepqtech.com

A simple package for manage api request easily with the help of flutter dio api.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on api_manager