renewCreditCardInfo method

Future<CreditCard> renewCreditCardInfo (
  1. CreditCard card
)

Implementation

Future<CreditCard> renewCreditCardInfo(CreditCard card) async {
  await maybeRefreshCards();
  for (CreditCard searchCard in creditCards) {
    if (searchCard.id == card.id) {
      return searchCard;
    }
  }
  return card;
}