FieldMetadata class
Metadata of a field in a CrystallisData class.
Constructors
-
FieldMetadata({required String name, required Type type, bool nullable = false, required List<
Validator> validators, Serializer serializer = fallbackDeserializer}) -
Creates a FieldMetadata.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Name of the field.
final
- nullable → bool
-
Whether the field is nullable (i.e. can be
null).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serializer → Serializer
-
Custom serializer for the field.
final
- type → Type
-
Type of the field.
final
-
validators
→ List<
Validator> -
List of applied validators.
final
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