isUpperCase function

IValidator isUpperCase()

Validates that it's a String and it's uppercase

Implementation

IValidator isUpperCase() =>
    isString() &
  (stringMatchesPattern(RegExp(r'^[A-Z]+$')) >
    Expectation(message: 'uppercase string', code: 'value.case_mismatch', data: {'expected_case': 'upper'}));