PDPasswordValidationResult class

密码校验结果。

Constructors

PDPasswordValidationResult({required bool isValid, String? errorMessage, required int strengthScore, required int totalRequirements, required int satisfiedRequirements, required Map<String, bool> validationResults})
创建一份密码校验结果。
const

Properties

errorMessage → String?
首个错误提示(若未通过)。
final
hashCode → int
The hash code for this object.
no setterinherited
isValid → bool
是否通过校验。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
satisfiedRequirements → int
满足的规则数。
final
strengthLevel → PDPasswordStrengthLevel
将 strengthScore/totalRequirements 映射为 PDPasswordStrengthLevel。
no setter
strengthScore → int
强度得分(通常等于满足的规则数)。
final
totalRequirements → int
参与计分的规则总数。
final
validationResults → Map<String, bool>
各项规则的校验结果明细。
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