unify_uni_bus 0.0.1+2
unify_uni_bus: ^0.0.1+2 copied to clipboard
UniBus is a Flutter event bus that enables seamless cross-platform communication between Flutter and Android, allowing event registration and dispatch from either side with a unified API.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add unify_uni_bus
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
unify_uni_bus: ^0.0.1+2
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:unify_uni_bus/unify_uni_bus.dart';