isUppercase static method

bool isUppercase(
  1. String str
)

Check if the string str is uppercase

Implementation

static bool isUppercase(String str) {
  return str == str.toUpperCase();
}