PolymorphicField class

Links a database composite column and a pivot column to a Dart field within a model class.

Inheritance
Annotations
  • @Target.new({TargetKind.getter})

Constructors

PolymorphicField({required String? name, required String pivotName, Symbol? pivotAs})
Creates a PolymorphicField 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
pivotAs Symbol?
Name for the pivot Dart field.
final
pivotName String
Name of the pivot column in the underlying database.
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