verifyMixedCase method

void verifyMixedCase(
  1. String value,
  2. String valueKindInError
)

Implementation

void verifyMixedCase(String value, String valueKindInError) {
  if(value[0].toUpperCase() != value[0]) {
    throwUsageError("The $valueKindInError should be mixed case");
  }
}