containsNumber method

bool containsNumber()

Returns true if the String containes at least one digit.

Implementation

bool containsNumber() {
  return characters.any((char) => "0123456789".contains(char));
}