toUnicode method
Render as unicode symbol
Implementation
String toUnicode() {
assert(index >= Suit.Club.index && index <= Suit.Spade.index);
return ['♣', '♦', '♥', '♠'][index - 1];
}
Render as unicode symbol
String toUnicode() {
assert(index >= Suit.Club.index && index <= Suit.Spade.index);
return ['♣', '♦', '♥', '♠'][index - 1];
}