validateBban function

void validateBban(
  1. String countryCode,
  2. String bban
)

Implementation

void validateBban(String countryCode, String bban) {
  validateCountryCode(countryCode, true);
  final BbanStructure? structure = getBbanStructure(countryCode);

  if (structure == null) {
    throw Exception("Internal error, expected structure");
  }

  structure.validate(bban);
}