fetchCreditCardsFromDatabase method

  1. @override
Future<List<CreditCard>> fetchCreditCardsFromDatabase ()
override

Implementation

@override
Future<List<CreditCard>> fetchCreditCardsFromDatabase() async {
  await Future.delayed(Duration(milliseconds: 200));
  List<CreditCard> cards = [];
  for (CreditCard card in cardDatabase.values) {
    cards.add(card);
  }
  return cards;
}