hasCapitalLetter static method

bool hasCapitalLetter(
  1. String s
)

Checks if string contains at least one Capital Letter

Implementation

static bool hasCapitalLetter(String s) => hasMatch(s, r'[A-Z]');