renewCreditCardInfo method
- 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;
}