consumer 2.0.0 copy "consumer: ^2.0.0" to clipboard
consumer: ^2.0.0 copied to clipboard

outdated

consumer is like react-consumer state manage, use Stream at dart, consumer have memo and shoudWidgetUpdate function to intercept update.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add consumer

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

dependencies:
  consumer: ^2.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:consumer/consumer.dart';
3
likes
0
pub points
79%
popularity

Publisher

unverified uploader

consumer is like react-consumer state manage, use Stream at dart, consumer have memo and shoudWidgetUpdate function to intercept update.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on consumer