EffectCommandBase<A extends Object, E extends Object> class
sealed
A Flutter-facing command that executes typed Effect values through a long-lived Runtime.
Commands are ValueListenable objects. ViewModels own them and Views observe
them through EffectCommandBuilder, EffectCommandListener, or Flutter's
standard Listenable APIs.
- Inheritance
-
- Object
- ChangeNotifier
- EffectCommandBase
- Implemented types
- Implementers
Properties
- concurrency → EffectCommandConcurrency
-
How repeated executions are coordinated.
final
- data → A?
-
Current successful data, including retained previous data.
no setter
- debugLabel → String?
-
Optional diagnostic name included in global transitions and Runtime
execution metadata.
final
- error → E?
-
Current typed failure.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isDisposed → bool
-
no setteroverride
- isRunning → bool
-
no setter
- keepPreviousData → bool
-
Whether running/failure/defect/interrupted states retain the latest data.
final
- lastDefect → Object?
-
no setter
- lastDefectStackTrace → StackTrace?
-
no setter
-
lastExit
→ Exit<
A, E> ? -
Latest authoritative execution outcome.
no setter
- lastFailure → E?
-
Latest typed failure, even after a later success.
no setter
- lastSuccess → A?
-
Latest successful value, even after a later failure.
no setter
- onCancel → VoidCallback?
-
Optional adapter hook invoked after core interruption is requested.
final
- pendingCount → int
-
Caller-visible executions that have not completed plus queued invocations.
no setter
- queuedCount → int
-
Number of executions waiting behind the authoritative execution.
no setter
-
resultOrNull
→ ResultDart<
A, E> ? -
Latest success/failure as Result. Defects and interruption return null.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
→ EffectCommandState<
A, E> -
The current value of the object.
no setteroverride
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
cancel(
{bool clearQueued = true}) → bool - Interrupt ownership of the current execution.
-
clear(
) → bool - Clear state and cached values after work finishes.
-
dispose(
) → void -
Discards any resources used by the object.
override
-
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
-
reset(
{bool clearCache = false}) → bool - Return to idle after work finishes.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited