getFrancoPhoneCountries static method

List<FrancoPhoneCountry> getFrancoPhoneCountries(
  1. String currency
)

Returns a list of francophone countries by their currencies

Implementation

static List<FrancoPhoneCountry> getFrancoPhoneCountries(
    final String currency) {
  if (currency == FlutterwaveCurrency.XAF)
    return [FrancoPhoneCountry("CAMEROON", "CM")];
  return [
    FrancoPhoneCountry("BURKINA FASO", "BF"),
    FrancoPhoneCountry("COTE D'IVOIRE", "CI"),
    FrancoPhoneCountry("GUINEA", "GN"),
    FrancoPhoneCountry("SENEGAL", "SN"),
  ];
}