FfiEntityTransportAdapter<T extends Object> class
final
Adapts an optional native bridge to the transport-neutral package contract.
- Inheritance
-
- Object
- EntityTransport<
T> - FfiEntityTransportAdapter
Constructors
-
FfiEntityTransportAdapter({required FfiEntityBridge<
T> bridge, bool authoritative = false, Duration? staleTime}) -
const
Properties
-
truewhen the local cache is authoritative (local-first sync tier).final -
bridge
→ FfiEntityBridge<
T> -
final
- 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).final
Methods
-
create(
Map< String, Object?> data) → Future<T> -
Create an entity from transport-neutral graph fields.
override
-
delete(
String id) → Future< void> -
Delete an entity by stable id.
override
-
get(
String id) → Future< T?> -
Fetch a single row by id.
Default implementation throws UnimplementedError.
override
-
identify(
T row) → String -
Derive the stable string id of a row.
override
-
list(
ListQuery query) → Future< ListResult< T> > -
Fetch a list of rows.
override
-
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
nullif this transport has no realtime support.override -
toGraph(
T row) → Map< String, Object?> -
Normalize a transport row into canonical graph fields.
override
-
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited