shared_preferences_riverpod_new 0.2.0
shared_preferences_riverpod_new: ^0.2.0 copied to clipboard
One-liner Riverpod 3 providers backed by SharedPreferences. Sync or async, a modern rewrite of shared_preferences_riverpod.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add shared_preferences_riverpod_newThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
shared_preferences_riverpod_new: ^0.2.0Alternatively, 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_riverpod_new/shared_preferences_riverpod_new.dart';