suit property
What's the suit of this card? Jokers have no suit.
Implementation
Suit? get suit {
if (index < Card.LowAceOfClubs.index || index > Card.AceOfSpades.index) {
return null;
}
return Suit.values[1 + (index & 3)];
}
What's the suit of this card? Jokers have no suit.
Suit? get suit {
if (index < Card.LowAceOfClubs.index || index > Card.AceOfSpades.index) {
return null;
}
return Suit.values[1 + (index & 3)];
}