testConcluded method

void testConcluded(
  1. int result,
  2. int mistakes
)

Implementation

void testConcluded(int result, int mistakes) {
  int score = 5 - mistakes;
  widget.onResultChange({'Completion time': result, 'score': score});
  taskTime = result;
  if (widget.activity.includeResults) {
    widget.eventLogger.resultsShown();
  }
  if (mounted) {
    setState(() {
      activityStatus = ActivityStatus.Result;
    });
  }
}