AggregateStateResult<TEvent extends Object, TValue extends Object, TId extends AggregateId, TState extends AggregateState<TValue> > class
abstract
- Implementers
Constructors
- AggregateStateResult(TState previous, TState? current)
-
AggregateStateResult.error(Object failure, Aggregate<
TEvent, TValue, TId, TState> aggregate) -
factory
- AggregateStateResult.ok({required TState current, required TState previous})
-
factory
Properties
- current → TState?
-
Current AggregateState value
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
Check if error state
no setter
- isNoOp → bool
-
Check if no state change occurred
no setter
- isOk → bool
-
Check if state is OK
no setter
- previous → TState
-
Previous AggregateState value
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → int
-
Current version
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited