PasswordControls class
PasswordControls : validation rules for password input
hasUppercase: make password contains at least one upperCase character hasSpecialCharacter: make password contains at least one special character hasDigits: make password contains at least one digits passwordMinLength: minimum length accepted by password
Constructors
- PasswordControls.all(bool value, {int passwordMinLength = 6})
-
const
- PasswordControls.only({bool hasDigits = true, bool hasSpecialCharacter = true, bool hasUppercase = true, int passwordMinLength = 6})
-
const
- PasswordControls.strong()
-
const
Properties
- hasDigits → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSpecialCharacter → bool
-
final
- hasUppercase → bool
-
final
- passwordMinLength → int
-
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited