contains method

  1. @useResult
bool contains(
  1. Card card
)

Returns whether this collection contains at least one copy of card.

Implementation

@useResult
bool contains(Card card) => count(card) > 0;