hasCapitalletter method Null safety

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]');