suit property

Suit? suit

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)];
}