handle abstract method

Future<void> handle(
  1. Effect effect,
  2. MsgEmitter<Msg> emit
)

Defines the asynchronous logic for processing the effect.

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

Subclasses must override this method to implement their specific asynchronous effect handling logic.

Implementation

Future<void> handle(Effect effect, MsgEmitter<Msg> emit);