toArray method

List<String> toArray()

Implementation

List<String> toArray() {
  return cards.map((c) => c.toString()).toList();
}