watch_it 2.4.1 copy "watch_it: ^2.4.1" to clipboard
watch_it: ^2.4.1 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 Flutter:

 $ flutter pub add watch_it

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  watch_it: ^2.4.1

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:watch_it/watch_it.dart';
198
likes
150
points
7.37k
downloads
screenshot

Publisher

verified publisherflutter-it.dev

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#state-management #dependency-injection #architecture #get-it

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter, get_it, listen_it

More

Packages that depend on watch_it