controller_pubsub 0.0.4
controller_pubsub: ^0.0.4 copied to clipboard
A Flutter package providing a simple implementation of the Publisher-Subscriber pattern for controllers. This package is designed to facilitate communication between controllers.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add controller_pubsub
copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
controller_pubsub: ^0.0.4
copied to clipboard
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:controller_pubsub/controller_publisher.dart';
import 'package:controller_pubsub/controller_subscriber.dart';
import 'package:controller_pubsub/controller_watcher.dart';
copied to clipboard