command_bus 1.2.0
command_bus: ^1.2.0 copied to clipboard
Minimal command bus toolkit with middleware, safe result handling, and examples.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add command_busWith Flutter:
$ flutter pub add command_busThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
command_bus: ^1.2.0Alternatively, 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:command_bus/command_bus.dart';