DefaultValue class

Contains the default value for a dog serializable field.

Inheritance
Mixed-in types

Constructors

DefaultValue(dynamic value, {bool keep = false})
Creates a new DefaultValue with the given value. The value may be any constant dart value or a dynamic Function() which will be evaluated as the supplier of the default value.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
keep bool
If the default value should be kept even if the field is present in the serialized map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The default value for the field.
final

Methods

beforeFieldDeserialization(NativeStructureContext context, NativeStructureFieldContext fieldContext, Map<String, dynamic> map, DogEngine engine) → void
This method is called before a field is deserialized by NativeSerializerMode.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postFieldSerialization(NativeStructureContext context, NativeStructureFieldContext fieldContext, Map<String, dynamic> map, DogEngine engine) → void
This method is called after a field is serialized by NativeSerializerMode.
override
toString() String
A string representation of this object.
inherited

Operators

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