icon property

AppIcon get icon

Gets the icon associated with the payment method type.

Returns an instance of AppIcon based on the payment method.

Implementation

AppIcon get icon {
  return switch (this) {
    bankily => AppIcons.bankily,
    masrivi => AppIcons.masrivi,
    sedad => AppIcons.sedad,
    bimBank => AppIcons.bimBank,
    bCIpay => AppIcons.bCIpay,
    amanty => AppIcons.amanty,
  };
}