startTest method
void
startTest()
Implementation
void startTest() async {
setState(() {
taskInfo = locale?.translate('corsi_block.wait') ?? "Wait";
readyForTap = false;
tapOrder.clear();
blocks.shuffle();
});
await Future<dynamic>.delayed(const Duration(seconds: 1));
for (int i = 0; i < numberOfBlocks; i++) {
if (activityStatus == ActivityStatus.Test && mounted) {
setState(() {
highlightedBlockID = blocks[i];
});
}
await Future<dynamic>.delayed(const Duration(milliseconds: 1000));
}
if (activityStatus == ActivityStatus.Test && mounted) {
setState(() {
highlightedBlockID = 500;
readyForTap = true;
taskInfo = locale?.translate('corsi_block.go') ?? 'Go';
});
}
}