DVVisibilityToggle class sealed

Whether an obscured value can be revealed, and by what.

On a field that hides what is typed into it -- a password, or a @DVModel.sensitiveField() a form lets a person set -- the default is an eye in the field. Typing a password twice is the ordinary way to get a capital wrong, and a field that cannot be read back cannot be corrected without losing everything already typed into it.

Nothing here draws on a field that is not obscured: .eye is a promise about a password field, and a field showing its text has nothing to reveal.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

Static Methods

custom(DVVisibilityToggleBuilder builder) → DVCustomVisibilityToggle
Any control of the application's own, given the current state and a callback that flips it.

Constants

eye → const DVVisibilityToggle
An eye in the field, labelled with what pressing it will do.
none → const DVVisibilityToggle
No toggle: the value stays hidden for as long as the field is.