startTest method
Implementation
Future<void> startTest() async {
setState(() {
currentNum += 1;
waiting = true;
});
for (var word in words) {
await Future<dynamic>.delayed(const Duration(milliseconds: 1200));
await player.setAsset(
'../packages/cognition_package/assets/sounds/${word.toUpperCase()}.mp3');
await player.play();
}
await Future<dynamic>.delayed(const Duration(seconds: 1));
setState(() {
waiting = false;
guess = true;
});
startTimer();
}