OrphanHand.fromIterable constructor

OrphanHand.fromIterable(
  1. Iterable<Card> c
)

Create new stack from list of cards, e.g.:

var hand = CardStack.fromList([ Card.FourOfSpades, Card.Joker ]);

Implementation

OrphanHand.fromIterable(Iterable<Card> c) {
  _cards = c.toList();
}