ConditionEvaluationResult class
Result of evaluating a single policy condition.
Constructors
- ConditionEvaluationResult({required bool matches, double confidence = 1.0, Duration evaluationTime = Duration.zero, bool isError = false, Object? error})
-
const
- ConditionEvaluationResult.error(Object error)
-
Create an error result per §3.
factory
Properties
- confidence → double
-
ToneConfidenceof the evaluation.
final
- error → Object?
-
Error details if isError.
final
- evaluationTime → Duration
-
Time taken to evaluate.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
Whether an error occurred.
final
- matches → bool
-
Whether the condition matched.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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