validateBranchCode function
Implementation
void validateBranchCode(String bic) {
String branchCode = getBranchCode(bic);
if (!RegExp(ucnumRegex).hasMatch(branchCode)) {
throw FormatException(
"Branch code must contain only letters or digits. Code:$branchCode",
);
}
}