toChar method
Render as text
Implementation
String toChar() {
assert(index >= Suit.Club.index && index <= Suit.Spade.index);
return ['c', 'd', 'h', 's'][index - 1];
}
Render as text
String toChar() {
assert(index >= Suit.Club.index && index <= Suit.Spade.index);
return ['c', 'd', 'h', 's'][index - 1];
}