containsCapitalLetter method

bool containsCapitalLetter()

Returns true if the String contains at least one upper case caracter.

Implementation

bool containsCapitalLetter() {
  return characters.any((char) => char.toUpperCase() == char);
}