getCountryCode method

String getCountryCode(
  1. Country country
)

Ülkeye göre 'Ülke Kodu' bilgisini geri döndürür.

Implementation

String getCountryCode(Country country) {
  switch (country) {
    case Country.turkish:
      {
        return prepareIban().substring(0, 2);
      }

    case Country.england:
      {
        return prepareIban().substring(0, 2);
      }

    case Country.germany:
      {
        return prepareIban().substring(0, 2);
      }

    case Country.france:
      {
        return prepareIban().substring(0, 2);
      }

    case Country.italy:
      {
        return prepareIban().substring(0, 2);
      }

    default:
      {
        return "";
      }
  }
}