upperCaseCount method

int upperCaseCount()

Returns the number of uppercase characters in the string.

Implementation

int upperCaseCount() {
  return replaceAll(RegExp(r'[^A-Z]'), '').length;
}