JsonField<T> class abstract base

Implemented types
Implementers

Constructors

JsonField(String name, {String? helper, bool isRequired = false, T? defaultValue})

Properties

defaultValue ↔ T?
Default value for the field
getter/setter pair
error String?
Field message: error
getter/setter pair
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
helper String?
Helper text when the field is displayed in a form
getter/setter pair
information String?
Field message: information
getter/setter pair
isNotNull bool
Check if the data is not null
no setter
isNull bool
Check if the data is null
no setter
isRequired bool
If this field is required or not
getter/setter pair
name String
Field name
getter/setter pairoverride
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
rawValue → T?
Raw value (nullable)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
value ↔ T
value getter
getter/setter pair
warning String?
Field message: warning
getter/setter pair

Methods

fromJSON(dynamic json) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → dynamic
Converts the internal value of the field to a JSON representation.
override
toString() String
Convert this field to String
override
validate() String?

Operators

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