StrengthLevel enum

The strength level of a password.

Inheritance
Available extensions

Values

veryWeak → const StrengthLevel

Score 0–19. Extremely weak — common words, very short.

weak → const StrengthLevel

Score 20–39. Weak — simple patterns, short length.

medium → const StrengthLevel

Score 40–59. Moderate — some complexity but improvable.

strong → const StrengthLevel

Score 60–79. Strong — good length and variety.

veryStrong → const StrengthLevel

Score 80–100. Very strong — high entropy, long, diverse characters.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isAcceptable bool

Available on StrengthLevel, provided by the StrengthLevelExtension extension

Returns true if this level is considered acceptably secure.
no setter
label String

Available on StrengthLevel, provided by the StrengthLevelExtension extension

Human-readable label for display in UI.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<StrengthLevel>
A constant List of the values in this enum, in order of their declaration.