watch_it 1.6.2
watch_it: ^1.6.2 copied to clipboard
The simple state management powered by get_it. It allows to observe changes of objects inside the get_it service locator and rebuild the UI accordingly.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add watch_itWith Flutter:
$ flutter pub add watch_itThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
watch_it: ^1.6.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:watch_it/watch_it.dart';