isUpperCase function
Checks whether the given string is all uppercase.
This function takes a String str and returns true if the string contains only
uppercase characters, and false otherwise.
Implementation
bool isUpperCase(final String str) {
return str == str.toUpperCase();
}