isUpperCase static method

bool isUpperCase(
  1. String? string
)

Returns true if string does not contain any lower case letters.

If string is null then return true;

Example: print(isUpperCase("CamelCase")); => false

print(isUpperCase("DART"));
=> true

print(isUpperCase(""));
=> false

print(isUpperCase(null));
=> true

Implementation

static bool isUpperCase(String? string) => Style.isUpperCase(string);