EffectHandler<E extends JEffect, S extends JState> typedef
Handler for a specific effect E with state S.
Returns a Future that completes when the UI has finished processing the effect.
Note: DO NOT retain BuildContext after a prolonged await.
Implementation
typedef EffectHandler<E extends JEffect, S extends JState> =
Future<void> Function(
E effect,
JController<S> controller,
BuildContext context,
);