updateInfo method

void updateInfo(
  1. CreditCardInfo card
)

Implementation

void updateInfo(CreditCardInfo card) {
  this.cardHoldname = card.cardHoldname;
  this.creditNumber = card.creditNumber;
  this.cvv = card.cvv;
  this.expiryDate = card.expiryDate;
  notifyListeners();
}