PasswordRequirement.minLength constructor

PasswordRequirement.minLength(
  1. int length
)

Creates a PasswordRequirement for a minimum length.

Implementation

factory PasswordRequirement.minLength(int length) => PasswordRequirement(
  description: 'At least $length characters',
  validator: (password) => password.length >= length,
);