RulesResult class
Result of rules execution containing tags, variables, actions, and metrics
Constructors
-
RulesResult({List<
TagResult> tags = const [], List<VariableResult> variables = const [], List<ActionResult> actions = const [], List<MetricResult> metrics = const [], String? error, dynamic rawResult}) -
const
- RulesResult.empty()
-
Creates an empty result (used by no-op engine)
const
- RulesResult.error(String errorMessage, {dynamic rawResult})
-
Creates an error result
const
-
RulesResult.fromMap(Map<
String, dynamic> mapResult, {dynamic rawResult}) -
Creates a result from map data
factory
Properties
-
actions
→ List<
ActionResult> -
final
- error → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasResults → bool
-
Whether there are any results to process
no setter
- isSuccess → bool
-
Whether the execution was successful
no setter
-
metrics
→ List<
MetricResult> -
final
- rawResult → dynamic
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
-
variables
→ List<
VariableResult> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Convert to map for serialization
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited