bloc_gen_annotations 0.0.1 copy "bloc_gen_annotations: ^0.0.1" to clipboard
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_annotations

With Flutter:

 $ flutter pub add bloc_gen_annotations

This 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.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_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';
1
likes
0
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

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, Restartable, Droppable, Debounce, Throttle) that enforces valid configurations at compile time. Depend on this package in your app; bloc_gen_runner goes in dev_dependencies.

License

unknown (license)

Dependencies

bloc, bloc_concurrency, equatable, flutter

More

Packages that depend on bloc_gen_annotations