isSEPACountry function
Validate if country code is from a SEPA country
// returns `true`
ibantools.isSEPACountry("NL");
// returns `false`
ibantools.isSEPACountry("PK");
Implementation
bool isSEPACountry(String countryCode) {
if (countryCode.isNotEmpty) {
final CountrySpec? spec = countrySpecs[countryCode];
if (spec != null) {
return spec.sepa != null ? spec.sepa! : false;
}
}
return false;
}