validateBranchCode function

void validateBranchCode(
  1. String bic
)

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",
    );
  }
}