IsLowerCase constructor
IsLowerCase()
Implementation
IsLowerCase()
: super(
methodName: "isLowerCase",
arity: 0,
targetType: NativeMethodTarget.string,
function: (target, _, _) {
//regex to check if every letter in the string is lowercase, ignoring non-alphabetic characters
final regex = RegExp(r"^[a-z]*$");
return regex.hasMatch(target);
},
);