isUpperCase static method

bool isUpperCase(
  1. String s
)

Checks if the given string s is upper case

Implementation

static bool isUpperCase(String s) {
  return s == s.toUpperCase();
}