call method

  1. @override
Future<void> call(
  1. Effect effect,
  2. MsgEmitter<Msg> emit
)
override

Handles the effect by invoking the handle method.

This method ensures that the provided effect is processed asynchronously, as defined in the handle method.

  • effect: The effect to be handled.
  • emit: A function to emit messages as a result of handling the effect.

Implementation

@override
Future<void> call(Effect effect, MsgEmitter<Msg> emit) async {
  return handle(effect, emit);
}