king_cache 0.0.41 king_cache: ^0.0.41 copied to clipboard
A Flutter package for caching api data to disk and improving app performance. It uses the http package to make api calls and use cache directory to cache data.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add king_cache
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
king_cache: ^0.0.41
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:king_cache/king_cache.dart';