PasswordComplexityRule class

Validates that a password meets common complexity requirements (at least one uppercase, one lowercase, one digit, one special character).

Implemented types
Annotations

Constructors

PasswordComplexityRule.new({String? message})
Creates a password complexity rule. Checks for at least one uppercase, lowercase, digit, and special character. message is the error message.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
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
validate(String? value, {BuildContext? context}) String?
Validates the given value. Returns an error message String if validation fails, otherwise returns `null].
override

Operators

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