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, '[A-Z]');