my_api_package 0.0.1 copy "my_api_package: ^0.0.1" to clipboard
my_api_package: ^0.0.1 copied to clipboard

A Flutter/Dart package that provides Dio-based API handling with token refresh.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add my_api_package

With Flutter:

 $ flutter pub add my_api_package

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  my_api_package: ^0.0.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:my_api_package/my_api_package.dart';
0
likes
130
points
114
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter/Dart package that provides Dio-based API handling with token refresh.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, get_secure_storage, json_annotation, jwt_decoder, retrofit

More

Packages that depend on my_api_package