CarpenterCommandExecutor class final
Executes commands and emits one uniform lifecycle for application policy.
Listeners can translate command outcomes into feedback, undo registration, cache invalidation, blocking presentation, analytics, or other application concerns without those concerns leaking into the command itself. Listener failures are reported to Flutter but never turn a successful business command into a failed command.
Constructors
-
CarpenterCommandExecutor({List<
CarpenterCommandExecutionListener> listeners = const []}) -
Creates an executor with zero or more synchronous lifecycle
listeners.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
listeners
→ List<
CarpenterCommandExecutionListener> -
Application-policy listeners notified for each execution lifecycle event.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute<
I> (CarpenterCommand< I> command, I input) → Future<CarpenterCommandResult> -
Executes
command, emitting started then succeeded/failed events while preserving the command's returned result or thrown failure. -
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