isUpperCase property

bool get isUpperCase

Return true if all characters in the string are in upperCase.

Example :

print('this'.isUpperCase); // false
print('THIS'.isUpperCase); // true

Implementation

bool get isUpperCase => this == toUpperCase();