EnforcingPattern class
The RegEx pattern to enforce for loose, medium and tight passwords.
The password will be matched against all three patterns in order to figure out how strong is the password.
Constructors
- EnforcingPattern({String loosePattern = r'(?=.*[a-z])(?=.*[A-Z])(?=.{6,})', String mediumPattern = r'((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{6,}))' '|' '((?=.*[a-z])(?=.*[A-Z])(?=.*[^A-Za-z0-9])(?=.{8,}))', String tightPattern = r'(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,})'})
-
Constructor
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- loosePattern → String
-
Pattern for a weak password.
final
- mediumPattern → String
-
Pattern for a medium password.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tightPattern → String
-
Pattern for a strong password.
final
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