DefaultsTo class
Shorthand for SerializableField.
- Inheritance
-
- Object
- SerializableField
- DefaultsTo
Constructors
- DefaultsTo(dynamic value)
-
const
Properties
- alias → String?
-
An alternative name for this field.
finalinherited
- canDeserialize → bool
-
Whether this field can be serialized, if exclude is
true
. Defaults tofalse
.finalinherited - canSerialize → bool
-
Whether this field can be serialized, if exclude is
true
. Defaults tofalse
.finalinherited - defaultValue → dynamic
-
A default for this field.
finalinherited
- deserializer → Symbol?
-
A custom serializer for this field.
finalinherited
- errorMessage → String?
-
An error message to be printed when the provided value is invalid.
finalinherited
- exclude → bool
-
Whether to exclude this field from serialization. Defaults to
false
.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- isNullable → bool
-
Whether this field can be set to
null
.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializer → Symbol?
-
A custom serializer for this field.
finalinherited
- serializesTo → Type?
-
May be used with serializer and deserializer.
finalinherited
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