EmbeddedMeta class
Metadata for a single @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.
MVP scope: only single-instance embedding
(i.e. OwnsOne / ComplexProperty, not OwnsMany
/ ComplexCollection).
Constructors
Properties
-
columns
→ List<
ColumnMeta> -
Columns flattened into the parent table. The SQL
names are taken as-is (or prefixed, see prefix).
final
- dartType → Type
-
Dart runtime type of the embedded object.
final
-
fromRow
→ Object Function(Map<
String, Object?> ) -
Factory that constructs the embedded object from
a raw row map.
final
- get → Object? Function(Object)
-
Reads the embedded object from a parent instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Name of the field on the parent (e.g.
'address').final - prefix → String?
-
Optional prefix to apply to the embedded SQL
column names (e.g.
'addr'→addr_street,addr_city). Ifnull(the default), the columns are emitted as-is.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- set → void Function(Object, Object?)
-
Sets the embedded object on a parent instance.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sqlName(
ColumnMeta c) → String - Returns the SQL column name for the embedded ColumnMeta (applying prefix if set).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited