isLowerCase function

IValidator isLowerCase()

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

Implementation

IValidator isLowerCase() =>
    isString() &
  (stringMatchesPattern(RegExp(r'^[a-z]+$')) >
    Expectation(message: 'lowercase string', code: 'value.case_mismatch', data: {'expected_case': 'lower'}));