RPResultPredicate class Null safety

This class examines a prediction and communicates its result to an RPStepNavigationRule.

It checks whether the expectedValue is identical to the result's value. It digs down the result hierarchy with the help of RPResultSelector.

Constructors

RPResultPredicate.forBooleanQuestionResult({required RPResultSelector resultSelector, required bool expectedValue})
Result predicate for the boolean answer format RPBooleanAnswerFormat. The expectedValue here should be a boolean.
RPResultPredicate.forChoiceQuestionResult({required RPResultSelector resultSelector, required List<int> expectedValue, required ChoiceQuestionResultPredicateMode choiceQuestionResultPredicateMode})
Result predicate for choice question types. The expectedValue here should correspond to the value of an RPChoice object.

Properties

expectedValue ↔ dynamic
read / write
getPredictionResult bool Function()
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

choiceValuePredictionResult() bool
directPredictionResult() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited