shared_preferences_cache 0.1.0+3 shared_preferences_cache: ^0.1.0+3 copied to clipboard
A Cache for Flutter based on Shared Preferences to cache results of heavy calcuations or API calls.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add shared_preferences_cache
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
shared_preferences_cache: ^0.1.0+3
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:shared_preferences_cache/shared_preferences_cache.dart';