RPResultPredicate.forChoiceQuestionResult constructor

RPResultPredicate.forChoiceQuestionResult({@required RPResultSelector resultSelector, @required List<int> expectedValue })

Result predicate for choice question types. The expectedValue here should correspond to the value of an RPChoice object.

Implementation

RPResultPredicate.forChoiceQuestionResult(
    {@required RPResultSelector resultSelector, @required List<int> expectedValue}) {
  this._resultSelector = resultSelector;
  this.expectedValue = expectedValue;

  getPredictionResult = choiceValuePredictionResult;
}