subpub 0.0.1-dev.9 subpub: ^0.0.1-dev.9 copied to clipboard
A lightweight and efficient state management solution for Flutter implementing the publisher-subscriber pattern with automatic dependency tracking and macro-powered code generation
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add subpub
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
subpub: ^0.0.1-dev.9
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:subpub/subpub.dart';