bloc_action_listener 1.0.1
bloc_action_listener: ^1.0.1 copied to clipboard
Package adds a stream to which you can send actions from your Bloc or Cubit and process these actions on the UI similar to a BlocListener
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add bloc_action_listener
With Flutter:
$ flutter pub add bloc_action_listener
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
bloc_action_listener: ^1.0.1
Alternatively, 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:bloc_action_listener/bloc_action_listener.dart';