Field class

Field is a class that helps in managing form fields

Constructors

Field(String key, {dynamic value, FormCast? cast, FormValidator? validate, bool autofocus = false, String? dummyData, String? style})

Properties

autofocus bool
The autofocus for the field
getter/setter pair
cast FormCast
The cast for the field
getter/setter pair
dummyData String?
The dummy data for the field
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
key String
The key of the field
getter/setter pair
name String
Get the name of the field
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style String?
The style for the field
getter/setter pair
validate FormValidator?
The validator for the field
getter/setter pair
value ↔ dynamic
The value of the field
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert the Field to a Map
toString() String
A string representation of this object.
inherited

Operators

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