dart_bloc_concurrency 2.0.0 copy "dart_bloc_concurrency: ^2.0.0" to clipboard
dart_bloc_concurrency: ^2.0.0 copied to clipboard

Custom event transformers. Built to be used with the bloc state management package.

example/main.dart

import 'package:bloc/bloc.dart';
import 'package:dart_bloc_concurrency/dart_bloc_concurrency.dart';

class MyBloc extends Bloc<MyBlocEvent, MyBlocState> {
  MyBloc() : super(MyBlocState()) {
    on<MyBlocEvent>(_onEvent, transformer: debounce());
  }

  void _onEvent(
    MyBlocEvent event,
    Emitter<MyBlocState> emit,
  ) {
    emit(MyBlocState());
  }
}

class MyBlocState {}

abstract class MyBlocEvent {}
0
likes
160
points
41
downloads

Publisher

verified publishermj12358.dev

Weekly Downloads

Custom event transformers. Built to be used with the bloc state management package.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

bloc, stream_transform

More

Packages that depend on dart_bloc_concurrency