validateCase function

void validateCase(
  1. String bic
)

Implementation

void validateCase(String bic) {
  if (bic != bic.toUpperCase()) {
    throw const FormatException("Bic must contain only upper case letters.");
  }
}