Field class

Constructors

Field({required String name, String import = '', DefaultValue? defaultValue, bool primary = false, bool basic = false, bool recycle = false})
const

Properties

basic bool
Sets if the current field should have a basic de/serialization.
final
defaultValue DefaultValue?
Default value for primitive types.
final
hashCode int
The hash code for this object.
no setterinherited
import String
Helps de/serializing instances whose classes are not managed by the library.
final
name String
Key for de/serialization
final
primary bool
Sets the current field as the primary key which will difference that instance of others.
final
recycle bool
Defines the current field for being recycle on the deserialization process. Instead of create a new instance of the field, the library will use the old one, for avoiding memory consumption.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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