persist_notifier 1.0.0 persist_notifier: ^1.0.0 copied to clipboard
An extension of ValueNotifier that will persist the value in storage. It was designed for defining settings and providing a 1-line solution with a default value and notification system.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add persist_notifier
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
persist_notifier: ^1.0.0
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:persist_notifier/persist_notifier.dart';