Password class Null safety

Represents the password text field, containing its value and whether it's valid or not.

/// It's validation errors are some value of PasswordValidationError.

Inheritance

Constructors

Password.dirty([String value = ''])
const
Password.pure()
const

Properties

error PasswordValidationError?
Returns a validation error if the FormzInput is invalid. Returns null if the FormzInput is valid.
read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
invalid → bool
Whether the FormzInput value is not valid. A value is invalid when the overridden validator returns an error (non-null value).
read-only, inherited
pure → bool
If the FormzInput is pure (has been touched/modified). Typically when the FormzInput is initially created, it is created using the FormzInput.pure constructor to signify that the user has not modified it.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
status → FormzInputStatus
The FormzInputStatus which can be one of the following:
read-only, inherited
valid → bool
Whether the FormzInput value is valid according to the overridden validator.
read-only, inherited
value → String
The value of the given FormzInput. For example, if you have a FormzInput for FirstName, the value could be 'Joe'.
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validator(String? value) PasswordValidationError?
A function that must return a validation error if the provided value is invalid and null otherwise.
override

Operators

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