cards method
Implementation
List<FlankerCard> cards(int amount) {
List<FlankerCard> cards = [];
for (var i = 0; i < amount; i++) {
even = !even;
if (Random().nextBool()) {
cards.add(
FlankerCard('→', even ? 0xff003F6E : 0xffC32C39, flankerState));
} else {
cards.add(
FlankerCard('←', even ? 0xff003F6E : 0xffC32C39, flankerState));
}
}
flankerState.startFlankerTimer();
return cards;
}