InlineHandler<TBloc extends JuiceBloc<TState> , TState extends BlocState, TEvent extends EventBase> typedef
InlineHandler<TBloc extends JuiceBloc<TState> , TState extends BlocState, TEvent extends EventBase> =
Future<void> Function(InlineContext<TBloc, TState> ctx, TEvent event)
Handler signature for inline use cases.
handler: (ctx, event) async {
ctx.emit.update(newState: ctx.state.copyWith(value: event.value));
}
Implementation
typedef InlineHandler<TBloc extends JuiceBloc<TState>, TState extends BlocState,
TEvent extends EventBase>
= Future<void> Function(InlineContext<TBloc, TState> ctx, TEvent event);