bloc_gen_annotations 0.0.1
bloc_gen_annotations: ^0.0.1 copied to clipboard
Annotations and configuration types for bloc_gen_runner. Provides a clean, type-safe Dart API for decorating BLoC classes and events — including a sealed transformer hierarchy (Concurrent, Sequential, [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add bloc_gen_annotationsWith Flutter:
$ flutter pub add bloc_gen_annotationsThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
bloc_gen_annotations: ^0.0.1Alternatively, 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_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';