bloc_advanced_tools 0.1.2 copy "bloc_advanced_tools: ^0.1.2" to clipboard
bloc_advanced_tools: ^0.1.2 copied to clipboard

Advanced tools for development using the BLoC pattern

Collection of useful tools for BLoC and Cubit development in Dart #

Tests are not complete

Contains #

  • AsyncTransformerCubit - Wrapper cubit that takes an input cubit and asynchronously transforms its state and produces a transformed output state.
  • BlocBusyWrapper - Wrapper mixin adds 'busy state' processing to an input bloc or cubit, so you can tell if a cubit is performing a state-modifying operation.
  • BlocMapCubit - Streaming container cubit that is a map from some immutable key to a some other cubit's output state.
  • BlocToolsExtension - Extension methods to make common operations on blocs easier.
  • FutureCubit - Simple base class for a cubit that initialized based on the result of a Future.
  • StateMapFollower - Mixin that automatically keeps two blocs/cubits in sync with each other. Useful for having a BlocMapCubit 'follow' the state of another input cubit.
  • StreamWrapperCubit - Simple base class to wrap a stream of states with a Cubit.
  • TransformerCubit - Wrapper cubit that takes an input cubit and transforms its state and produces a transformed output state.
0
likes
150
pub points
67%
popularity

Publisher

verified publisherveilid.com

Advanced tools for development using the BLoC pattern

Repository (GitLab)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

veilid.org

License

MPL-2.0 (LICENSE)

Dependencies

async_tools, bloc, equatable, fast_immutable_collections, meta

More

Packages that depend on bloc_advanced_tools