getChannelIcon static method

IconData getChannelIcon(
  1. LokotroPayChannel channel
)

Get icon for payment channel

Implementation

static IconData getChannelIcon(LokotroPayChannel channel) {
  switch (channel) {
    case LokotroPayChannel.card:
      return Icons.credit_card;
    case LokotroPayChannel.mobileMoney:
      return Icons.phone_android;
    case LokotroPayChannel.ewallet:
    case LokotroPayChannel.lokotroWallet:
      return Icons.account_balance_wallet;
    case LokotroPayChannel.bankTransfer:
      return Icons.account_balance;
    case LokotroPayChannel.virtualCard:
      return Icons.credit_card_outlined;
    case LokotroPayChannel.eflash:
      return Icons.flash_on;
    case LokotroPayChannel.ewalletOtp:
      return Icons.security;
    case LokotroPayChannel.googlePay:
    case LokotroPayChannel.applePay:
      return Icons.contactless;
    case LokotroPayChannel.all:
      return Icons.payment;
    case LokotroPayChannel.none:
      return Icons.help_outline;
  }
}