RPVisualTrackingResult.fromResults constructor

RPVisualTrackingResult.fromResults(
  1. List mistakes,
  2. List times,
  3. int score
)

Create a RPVisualTrackingResult from result for Multiple Object Tracking test:

  • mistakes: number of mistakes made in each repetition
  • times: time taken to finish the test
  • score: 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;
}