getIbanLength function

int getIbanLength(
  1. Country country
)

Implementation

int getIbanLength(Country country) {
  final structure = getBbanStructure(country.countryCode);

  if (structure == null) {
    throw Exception("Unsupported country. Code:$country");
  }

  return COUNTRY_CODE_LENGTH + CHECK_DIGIT_LENGTH + structure.getBbanLength();
}