SPRoomEntityAdapter<T> class abstract

Converts a Dart entity to/from rows for a specific table.

Subclass this once per entity. The adapter is intentionally explicit so model mapping stays tree-shakeable and predictable on every Flutter target.

Constructors

SPRoomEntityAdapter()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → SPRoomEntitySchema
Schema associated with this model.
no setter

Methods

fromRow(Map<String, Object?> row) → T
Creates an entity from a database row.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
primaryKeyOf(T entity) → Map<String, Object?>
Resolves the primary-key values from entity.
toRow(T entity) → Map<String, Object?>
Converts entity to SQLite-compatible column values.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited