action_bloc 0.0.2+1 action_bloc: ^0.0.2+1 copied to clipboard
Extends bloc with a second stream for actions (one time events that aren't part of the state).
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add action_bloc
With Flutter:
$ flutter pub add action_bloc
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
action_bloc: ^0.0.2+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:action_bloc/action_bloc.dart';