JSideEffectHandler<T extends JState> class
abstract
Base class for handling side effects in a JController. Enhanced to support:
- Exact-type handler registration.
- Unhandled strategies (warn, complete with error, throw).
Register each concrete effect type explicitly. Inheritance-based fallback is not supported. A handler failure completes any pending result with the original error and fails handle with that same error and stack trace.
Constructors
-
JSideEffectHandler(JController<
T> controller)
Properties
-
controller
↔ JController<
T> -
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handle(
JEffect effect, JController< T> controller, BuildContext context) → Future<void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
E extends JEffect> (EffectHandler< E, T> handler) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited