fetchCreditCardsFromDatabase method

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

Implementation

@override
Future<List<CreditCard>> fetchCreditCardsFromDatabase() async {
  HttpsCallableResult result = await getCardsCallable.call();
  List<CreditCard> fetchedCards = data2cards(result);
  return fetchedCards;
}