password method

FormValidator password({
  1. required int strength,
})

Validate that the value is a password

Implementation

FormValidator password({required int strength}) {
  assert(strength > 0 && strength < 3,
      "Password strength must be between 1 and 2");
  _addRule("password_v$strength");
  return this;
}