pushN method

  1. @override
void pushN(
  1. int count,
  2. Iterable<Card> cards
)
override

Add n cards to the top of the stack as a unit.

Implementation

@override
void pushN(int count, Iterable<Card> cards) {
  for (Card c in cards.take(count)) {
    _cards.add(c);
  }
}