handle abstract method

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

Defines the synchronous 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 synchronous effect handling logic.

Note: The return type is explicitly set to Null to ensure that this method is not mistakenly implemented with asynchronous behavior.

Implementation

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