From 6f23f17ad46e7a254278e348ccee3d2ea1c3d458 Mon Sep 17 00:00:00 2001 From: Meet Janani Date: Tue, 28 Sep 2021 15:01:06 +0530 Subject: [PATCH] :bug: #57 Can specify a custom card type icons --- lib/credit_card_widget.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 {