queryCreditCard method
- String id
Implementation
CreditCard queryCreditCard(String id) {
for (CreditCard card in creditCards) {
if (card.id == id) {
return card;
}
}
return createCreditCard('Unknown', 'unknown');
}
CreditCard queryCreditCard(String id) {
for (CreditCard card in creditCards) {
if (card.id == id) {
return card;
}
}
return createCreditCard('Unknown', 'unknown');
}