getCardsBysection method

List<ICardData> getCardsBysection(
  1. String currentSection
)

Implementation

List<ICardData> getCardsBysection(String currentSection) {
  final List<ICardData> cardsBySection = [];
  for (final card in cardMananger.cardsDatas) {
    if (card.section == currentSection && card.showCard) {
      cardsBySection.add(card);
    }
  }
  return cardsBySection;
}