Skip to content

Commit

Permalink
🐛 #57 Can specify a custom card type icons
Browse files Browse the repository at this point in the history
  • Loading branch information
meetjanani-simformsolutions authored and vatsaltanna committed Oct 11, 2021
1 parent f1294d5 commit 6f23f17
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/credit_card_widget.dart
Expand Up @@ -604,11 +604,13 @@ class _CreditCardWidgetState extends State<CreditCardWidget>
return icon;
}

List<CustomCardTypeImage> getCustomCardTypeIcon(CardType currentCardType) =>
widget.customCardIcons
.where((CustomCardTypeImage element) =>
element.cardType == currentCardType)
.toList();
List<CustomCardTypeImage> getCustomCardTypeIcon(CardType currentCardType) {
final List<CustomCardTypeImage> customCardTypeIcon = widget.customCardIcons
.where((CustomCardTypeImage element) =>
element.cardType == currentCardType)
.toList();
return customCardTypeIcon;
}
}

class MaskedTextController extends TextEditingController {
Expand Down

0 comments on commit 6f23f17

Please sign in to comment.