SatisfyAnyRuleResponse<VALUE extends Object> class
Contains the rule that succeeded in addition to other data.
- Inheritance
-
- Object
- RuleResponse<
VALUE> - SatisfyAnyRuleResponse
Constructors
- SatisfyAnyRuleResponse.failed({VALUE? fallbackValue})
- Sets the succesRule to null.
-
SatisfyAnyRuleResponse.fromRuleResponse(RuleResponse<
VALUE> response, Rule<Object, Object> ? successRule) - Copies data from the given RuleResponse.
Properties
- fallbackValue → VALUE?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFailure → bool
-
no setterinherited
- isSuccess → bool
-
Set
true
when the rule succeeds.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
successRule
→ Rule<
Object, Object> ? -
The rule that succeeded.
final
- value → VALUE?
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
throwIfFailed<
EXCEPTION extends NamedException> (EXCEPTION exception) → RuleResponse< VALUE> -
Exits the chain when an exception is occurred.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform<
NEW_VALUE extends Object> (NEW_VALUE transformer(VALUE? value), {NEW_VALUE fallbackValueTransformer(VALUE? fallbackValue)?}) → RuleResponse< NEW_VALUE> -
inherited
-
transformWith<
NEW_VALUE extends Object> (NEW_VALUE value, [NEW_VALUE? fallbackValue]) → RuleResponse< NEW_VALUE> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited