AFNumberField<T extends num> class
The default Field extended class used to represent a form's number field.
- Inheritance
-
- Object
- Field<
T> - AFTextField<
T> - AFNumberField
Constructors
-
AFNumberField({ValueChanged<
T?> ? onChanged, required String id, required String name, required List<Validator< validators, T? value})T> >
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A unique identifier for the field which will be used to retrieve its data.
finalinherited
- maxLines → int?
-
The maximum number of lines to show at one time, wrapping if necessary.
finalinherited
- name → String
-
The name that will be displayed to the user.
finalinherited
-
onChanged
→ ValueChanged<
T?> ? -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → AFTextFieldType
-
Depending on the value of this field, the widget's related instance will act differently.
(For instance, if you choose the password option it will display a hide/display icon).
finalinherited
-
updateStream
→ Stream<
T?> -
The stream that will be used to notify the form that the field's value
has changed.
no setterinherited
-
validators
→ List<
Validator< Object?> > -
A list of validators that will be used to verify the user's input.
finalinherited
- value ↔ T?
-
The current value of the field.
covariantgetter/setter pairinherited
- widgetBuilder → FieldWidgetConstructor
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parser(
covariant Object? unparsedValue) → T? -
Parses a value into an instance of T.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateValue(
covariant Object? value) → void -
Sets the value of the field and notifies the form's widgets that the value has
changed.
inherited
-
validator(
[Object? object]) → String? -
This method returns null if the field is valid. Otherwise it will
return the error's string specified in the validator (see Validator).
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited