model_notifier 0.15.1+16 model_notifier: ^0.15.1+16 copied to clipboard
Package that makes it easy to define ValueNotifier as a model and improves the affinity with riverpod and freezed.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add model_notifier
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
model_notifier: ^0.15.1+16
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:model_notifier/model_notifier.dart';