trainers property

List<Card> get trainers

Implementation

List<Card> get trainers =>
    cards.where((element) => element.cardType == CardType.trainer).toList();