drawHand method

bool drawHand(
  1. List<Card> cards
)

Implementation

bool drawHand(List<Card> cards) {
  for (Card c in cards) {
    if (deck.removeCard(c)) {
      _cards.push(c);
    } else {
      return false;
    }
  }
  return true;
}