hasMinimumLength static method
Checks if the password has a minimum length.
Returns true if the length of the password is greater than or equal to minLength,
otherwise returns false.
Implementation
static bool hasMinimumLength(String password, int minLength) {
return password.length >= minLength;
}