Embedded class

: marks a field as an embedded value object (EF Core's OwnsOne / ComplexProperty pattern). The fields of the embedded type are flattened into the parent table — they don't get their own table and they don't carry an FK.

Constructors

Embedded({String? prefix})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
prefix String?
Optional prefix to apply to the embedded column names. If null (the default), the columns are emitted as-is (e.g. street, city). If non-null (e.g. 'addr'), the columns are emitted as addr_street, addr_city.
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