hasMinimumLength static method

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

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;
}