toUnicode method

String toUnicode()

Render as unicode symbol

Implementation

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