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

This 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+4

Alternatively, 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';
1
likes
150
points
1
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Type-safe BLoC annotations for states and events, simplifying bloc_concurrency and equatable with 6 sealed transformers.

Repository (GitHub)
View/report issues
Contributing

Topics

#bloc #bloc-concurrency #state-management #code-generator #annotations

License

MIT (license)

Dependencies

bloc, bloc_concurrency, equatable, flutter

More

Packages that depend on bloc_gen_annotations