cross_cache 0.0.2 cross_cache: ^0.0.2 copied to clipboard
Cross-platform cache manager for Flutter using IndexedDB for web, file system for mobile and desktop, and Dio for network requests. #cache #indexeddb #dio
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add cross_cache
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
cross_cache: ^0.0.2
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:cross_cache/cross_cache.dart';