tryFind method

Card? tryFind(
  1. CardSet cardSet,
  2. int orderInSet
)

Looks up a card in this collection by its cardSet and orderInSet.

If the card is not found, returns null.

NOTE: This method is not highly optimized.

Implementation

Card? tryFind(CardSet cardSet, int orderInSet) {
  return tryFindCopies(cardSet, orderInSet).card;
}