isLowercase function Null safety

bool isLowercase(
  1. String str
)

check if the string str is lowercase

Implementation

bool isLowercase(String str) {
  return str == str.toLowerCase();
}