RPResultPredicate class
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 }) -
Result predicate for choice question types. The
expectedValue
here should correspond to thevalue
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 -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited