persist_notifier 1.1.0 persist_notifier: ^1.1.0 copied to clipboard
A ValueNotifier designed for defining settings and providing a 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.1.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';