getCardTypeString method

String getCardTypeString(
  1. CardType cardType,
  2. String customCardType
)

Implementation

String getCardTypeString(CardType cardType, String customCardType) {
  switch (cardType) {
    case CardType.debit:
      return "DEBIT";
    case CardType.credit:
      return "CREDIT";
    case CardType.custom:
      return customCardType;
  }
}