getPaymentNetworksConcatenated function

String getPaymentNetworksConcatenated(
  1. List<PaymentSDKNetworks>? list
)

Implementation

String getPaymentNetworksConcatenated(List<PaymentSDKNetworks>? list) {
  if (list == null || list.isEmpty) return "";
  String networkStr = "";
  for (var apm in list) {
    if (networkStr != "") {
      networkStr += ",";
    }
    networkStr += "${apm.name}";
  }
  return networkStr;
}