diff --git a/lib/credit_card_widget.dart b/lib/credit_card_widget.dart index 73cfd9a..f0e50b4 100644 --- a/lib/credit_card_widget.dart +++ b/lib/credit_card_widget.dart @@ -604,11 +604,13 @@ class _CreditCardWidgetState extends State return icon; } - List getCustomCardTypeIcon(CardType currentCardType) => - widget.customCardIcons - .where((CustomCardTypeImage element) => - element.cardType == currentCardType) - .toList(); + List getCustomCardTypeIcon(CardType currentCardType) { + final List customCardTypeIcon = widget.customCardIcons + .where((CustomCardTypeImage element) => + element.cardType == currentCardType) + .toList(); + return customCardTypeIcon; + } } class MaskedTextController extends TextEditingController {