RPVisualTrackingResult.fromResults constructor
Create a RPVisualTrackingResult from result for Multiple Object Tracking test:
mistakes
: number of mistakes made in each repetitiontimes
: time taken to finish the testscore
: score of the test calculated in model class
Implementation
factory RPVisualTrackingResult.fromResults(
List<dynamic> mistakes,
List<dynamic> times,
int score,
) {
var res = RPVisualTrackingResult(identifier: 'VisualTrackingTaskResult');
res.results.addAll({'mistakes': mistakes});
res.results.addAll({'times': times});
res.results.addAll({'score': score});
return res;
}