CloneField<T> class
The CloneField class implementation
A field is a Clonable object's attribute used to clone and serialize it.
Constructors
- CloneField(String name, {CloneGetterFunction? getter, CloneSetterFunction? setter, T? defaultValue})
- The CloneField constructor
Properties
- defaultValue ↔ T?
-
The default value. If not null this value is used to save space within
the json structure (i.e. if the value equals the defaultValue the field
is not stored within the resulting json structure).
getter/setter pair
- getter ↔ CloneGetterFunction
-
Gets the field value.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNullable → bool
-
True if the filed holds a nullable type
no setter
- name → String
-
The field name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setter ↔ CloneSetterFunction
-
Setter (sets the field value)
getter/setter pair
- value ↔ T
-
getter/setter pair
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.
override