StudentCode class Null safety
Represents the student code text field, containing its value and whether it's valid or not.
It's validation errors are some value of StudentCodeValidationError.
- Inheritance
-
- Object
- FormzInput<
String, StudentCodeValidationError> - StudentCode
Constructors
- StudentCode.dirty([String value = ''])
-
const
- StudentCode.pure()
-
const
Properties
- error → StudentCodeValidationError?
-
Returns a validation error if the
FormzInputis invalid. Returnsnullif theFormzInputis valid.read-only, inherited - hashCode → int
-
The hash code for this object.
read-only, inherited
- invalid → bool
-
Whether the
FormzInputvalue is not valid. A value is invalid when the overriddenvalidatorreturns an error (non-null value).read-only, inherited - pure → bool
-
If the
FormzInputis pure (has been touched/modified). Typically when theFormzInputis initially created, it is created using theFormzInput.pureconstructor 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
FormzInputStatuswhich can be one of the following:read-only, inherited - valid → bool
-
Whether the
FormzInputvalue is valid according to the overriddenvalidator.read-only, inherited - value → String
-
The value of the given
FormzInput. For example, if you have aFormzInputforFirstName, 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) → StudentCodeValidationError? -
A function that must return a validation error if the provided
valueis invalid andnullotherwise.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited