RPDelayedRecallResult.fromResults constructor
RPDelayedRecallResult.fromResults()
Create a RPDelayedRecallResult based on results for Delayed Recall Test:
wordList
: list of words to be recalledresultList
: list of recalled wordstimeTaken
: time taken to recallscore
: score of the test calculated in model class
Implementation
factory RPDelayedRecallResult.fromResults(
List<String> wordList,
List<String> resultList,
int timeTaken,
int score,
) {
var res = RPDelayedRecallResult(identifier: 'DelayedRecallResult');
res.results.addAll({'wordlist delayed': wordList});
res.results.addAll({'resultlist3': resultList});
res.results.addAll({'time taken': timeTaken});
res.results.addAll({'score': score});
return res;
}