calculateScore method

  1. @override
int calculateScore(
  1. dynamic result
)
override

Results is number of mistakes made in the trailmaking task. Maximum score is 5 with -1 for each mistake made.

Implementation

@override
int calculateScore(dynamic result) => 5 - (result['mistakeCount'] as int);