CarpenterCommandFeedbackController class final
Converts command execution events into one controlled piece of feedback state suitable for business screens.
Starting any observed command clears previous feedback. Success publishes feedback when the result has a message or undo action. Failure keeps the original error for diagnostics while exposing only the application-provided mapped message to presentation code; raw technical errors are never turned into UI copy by default.
- Inheritance
-
- Object
- ChangeNotifier
- ValueNotifier<
CarpenterCommandFeedback?> - CarpenterCommandFeedbackController
Constructors
- CarpenterCommandFeedbackController({CarpenterCommandFailureMessageMapper? failureMessage})
- Creates a feedback controller with an optional failure-to-message mapper and no initial feedback.
Properties
- failureMessage → CarpenterCommandFailureMessageMapper?
-
Optional mapper responsible for converting technical command failures into
user-facing copy.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ CarpenterCommandFeedback?
-
The current value stored in this notifier.
getter/setter pairinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dismiss(
) → void - Clears the currently exposed command feedback without changing command state.
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
handle(
CarpenterCommandExecutionEvent event) → void - Reduces one execution lifecycle event into feedback state: starts clear prior feedback, successes publish message/undo state, and failures retain diagnostics plus mapped copy.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited