EntityTransport<T extends Object> class abstract

Per-entity transport contract — mirrors EntityTransport<T> in transport/types.ts.

Register one per entity type via EntityTransportRegistry. Override get and subscribe for single-entity fetches and realtime.

Implementers

Constructors

EntityTransport()
const

Properties

authoritative → bool
true when the local cache is authoritative (local-first sync tier).
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staleTime → Duration?
Stale-while-revalidate window. null → use the engine default (30 s).
no setter

Methods

create(Map<String, Object?> data) → Future<T>
Create an entity from transport-neutral graph fields.
delete(String id) → Future<void>
Delete an entity by stable id.
get(String id) → Future<T?>
Fetch a single row by id. Default implementation throws UnimplementedError.
identify(T row) → String
Derive the stable string id of a row.
list(ListQuery query) → Future<ListResult<T>>
Fetch a list of rows.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(void onChange(ChangeEvent<T> event)) → StreamSubscription<ChangeEvent<T>>?
Subscribe to realtime change events. Returns a StreamSubscription or null if this transport has no realtime support.
toGraph(T row) → Map<String, Object?>
Normalize a transport row into canonical graph fields.
toString() → String
A string representation of this object.
inherited
update(String id, Map<String, Object?> patch) → Future<T>
Apply a partial update and return the server-confirmed row.

Operators

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