hasMinLength method

bool hasMinLength(
  1. String password,
  2. int minLength
)

Checks if password has minLength

Implementation

bool hasMinLength(String password, int minLength) {
  return password.length >= minLength ? true : false;
}