getCardWidget method
Implementation
Widget getCardWidget(BuildContext context, CardData cardData) {
final type = cardData.type;
if (cardMap!.containsKey(type)) {
return cardMap![type!]!.createWidget(context, cardData);
} else {
// fallback
return Container(
child: Center(
child: Text("Card No Found"),
),
);
}
}