tbloc_dart library Null safety

Classes

BidirectionalBloc<E extends BlocEvent, S extends BlocState>
Takes a Stream of BlocEvents as input and transforms them into a Stream of BlocStates as output.
BidirectionalHydratedBloc<E extends BlocEvent, S extends HydratedBlocState>
Takes a Stream of BlocEvents as input and transforms them into a Stream of BlocStates as output.
Bloc<S extends BlocState>
Abstract Bloc which has no notion of events.
BlocBuilderMixin
BlocBuilderWidget<S extends BlocState>
Handles building a widget when BloC's state changes.
BlocBuilderWidget2<S1 extends BlocState, S2 extends BlocState>
Handles building a widget when two BloC states change.
BlocBuilderWidget3<S1 extends BlocState, S2 extends BlocState, S3 extends BlocState>
Handles building a widget when three BloC states change.
BlocError
BlocEvent<T, P>
BlocProvider<T extends Bloc<S>, S extends BlocState>
Widget used as a dependency injection mechanism in order to provide to multiple widgets a single instance of a BloC.
BlocState
BlocStore<S extends BlocState>
Interface which is used to persist and retrieve state changes.
HydratedBlocState
IBlocBuilder
MultiBlocProvider
Merges multiple BlocProvider widgets into one widget tree.
UnidirectionalBloc<S extends BlocState>
A UnidirectionalBloc is a subset of Bloc which has no notion of events and relies on methods to emit new states.
UnidirectionalHydratedBloc<S extends HydratedBlocState>
A UnidirectionalHydratedBloc is a subset of Bloc which has no notion of events and relies on methods to emit new states.

Mixins

BlocProviderSingleChildWidget
HydratedBlocMixin<S extends HydratedBlocState>

Extensions

BlocProviderExtension

Typedefs

BlocBuilder<S extends BlocState> = Widget Function(BuildContext context, S state)
BlocBuilder2<S1 extends BlocState, S2 extends BlocState> = Widget Function(BuildContext context, S1 state, S2 state2)
BlocBuilder3<S1 extends BlocState, S2 extends BlocState, S3 extends BlocState> = Widget Function(BuildContext context, S1 state, S2 state2, S3 state3)
BlocDebounceCallback<E extends BlocEvent> = void Function([Map? extras])
BlocDebounceEventCallback<E extends BlocEvent> = void Function(E event)
BlocStateBuilder<S extends BlocState> = S Function()
BlocThrottleCallback<E extends BlocEvent> = void Function([Map extras])
BlocThrottleEventCallback<E extends BlocEvent> = void Function(E event)