hasMinLowercase method
Checks if password has at least lowercaseCount lowercase letter matches
Implementation
bool hasMinLowercase(String password, int lowercaseCount) {
String pattern = '^(.*?[a-z]){' + lowercaseCount.toString() + ',}';
return password.contains(new RegExp(pattern));
}