Interface for handling effects.
Defines the contract for processing effects and emitting messages as a result. Effect handlers allow for side effects, such as API calls or logging, without directly modifying the state.
Effect: The type of effects this handler processes.Msg: The type of messages this handler can emit.
- Implementers
- Annotations
-
- @experimental
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
Effect effect, MsgEmitter< Msg> emit) → FutureOr<void> -
Processes the given
effectand optionally emits messages usingemit. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited