ModelField class
Links a database composite column to a Dart field within a model class.
Constructors
- ModelField({required String? name, required Type referTo, ModelFieldOutput output = const ModelFieldOutput.identity()})
-
Creates a ModelField by its attributes.
const
Properties
- defaultValue → Object?
-
Optional default value for the field.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
Name of the column in the underlying database.
finalinherited
- output → ModelFieldOutput
-
What kind of return type should the generated field for this getter have.
final
- referTo → Type
-
The class annotated with Model or Data that should be represented
within this field.
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