UIPayloadCompositeStrategy<A extends UIPayload, B extends UIPayload> class
abstract
Strategy for combining two UIPayload instances into one.
Use this when you need to merge validation results, error messages, or other payloads from multiple sources.
Example:
final strategy = DefaultUIPayloadCompositeStrategy();
final result = strategy.compose(
Failure(SimpleText('Email required')),
Failure(SimpleText('Password required')),
);
// Returns: UIPayloads([...both failures...])
- Implementers
Constructors
- UIPayloadCompositeStrategy()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compose(
A? a, B? b) → UIPayload? - Combines two payloads into a single payload. Returns null if both inputs are null.
-
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