cardAt method

  1. @override
Card? cardAt(
  1. int index
)
override

Return the card at position index.

Implementation

@override
Card? cardAt(int index) {
  if (index < 0 || index >= _cards.length) return null;
  return _cards[index];
}