bloc_enhancer 0.3.1 bloc_enhancer: ^0.3.1 copied to clipboard
An annotation package simplifying Bloc event and state classes, enhancing code readability and reducing naming conflicts.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add bloc_enhancer
With Flutter:
$ flutter pub add bloc_enhancer
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
bloc_enhancer: ^0.3.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_enhancer/bloc_enhancer.dart';