bloc_gen_annotations 0.0.1+4
bloc_gen_annotations: ^0.0.1+4 copied to clipboard
Type-safe BLoC annotations for states and events, simplifying bloc_concurrency and equatable with 6 sealed transformers.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add bloc_gen_annotationsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
bloc_gen_annotations: ^0.0.1+4Alternatively, 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:bloc_gen_annotations/bloc_generator_annotations.dart';
import 'package:bloc_gen_annotations/event.dart';
import 'package:bloc_gen_annotations/event_mixin.dart';
import 'package:bloc_gen_annotations/state.dart';
import 'package:bloc_gen_annotations/transformers/debounce_transformer.dart';
import 'package:bloc_gen_annotations/transformers/throttle_transformer.dart';