onbackground_shared_prefrences 0.0.2
onbackground_shared_prefrences: ^0.0.2 copied to clipboard
Flutter package for reading and writing simple key-value pairs built on top of shared_prefrences plugin, the benefit is that you can store the data either on background or foreground.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add onbackground_shared_prefrencesThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
onbackground_shared_prefrences: ^0.0.2Alternatively, 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:onbackground_shared_prefrences/onbackground_shared_prefrences.dart';