MatchRule class final

The password equals the value other returns, typically the text of a confirmation field.

PasswordRules.generate skips this rule, since the confirmation is typed after the password.

Inheritance

Constructors

MatchRule(String other())
Creates the rule from a getter of the value to match.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
other → String Function()
Returns the value the password has to equal.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
test(String password) → bool
Whether password satisfies this rule.
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited