xt_event_bus 1.0.0
xt_event_bus: ^1.0.0 copied to clipboard
XtEventBus is a powerful library that simplifies event-driven communication within your Flutter applications. Based on the popular EventBus pattern, this library provides a streamlined solution for ef [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add xt_event_busThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
xt_event_bus: ^1.0.0Alternatively, 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:xt_event_bus/xt_event_bus.dart';