RecordMeta class abstract final

Keys the package stores inside cached record JSON to track local state.

They are visible in RecordModel.data of cached records and are never sent to the server.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

Static Methods

flag(Object? value) → bool
JSON booleans read through a fields projection come back as 0/1.
isPending(Map<String, dynamic> data) → bool
Whether data holds an unsynced local change (including tombstones).
strip(Map<String, dynamic> data) → Map<String, dynamic>
A copy of data without the package's bookkeeping keys.

Constants

baseUpdated → const String
Server updated of the row when its pending change started.
deleted → const String
Tombstone: deleted locally, the deletion is not on the server yet.
isNew → const String
The record was created locally and does not exist on the server yet.
keys → const Set<String>
noSync → const String
Local-only row (written with RequestPolicy.cacheOnly); never synced.
pendingBase → const String
Server values of the pending fields when each first became pending ({field: value}; file fields without local upload names). Fields changed by local uploads have a base too.
pendingDeltas → const String
Pending fields whose every local edit was a modifier ({field: kind}, see DeltaKind). Sync sends their change from pendingBase as modifiers (n+: 2, tags+: [...], tags-: [...]), so concurrent changes of other devices to the same field survive.
pendingFields → const String
Names of the fields changed by pending local updates. Sync sends only these fields, so other devices' changes to other fields survive.
pendingFiles → const String
Files attached by pending local writes: [{field, name}], where field is the multipart key used (images, images+, ...) and name the local blob name.
pendingOwner → const String
Auth record id of the account that made the pending change. Changes from another account are hidden and not synced until it logs in again.
pendingRev → const String
Increments with every local change, so a sync can tell whether the row changed while its request was in flight.
retryCount → const String
Failed sync attempts that the server rejected.
synced → const String
true once the server holds this version, false while a local change is pending. Rows written by older versions may lack the key (= synced).
syncError → const String
Set when the server rejected the change permanently; the row stays pending (visible in pendingRecords()) but automatic sync skips it.
systemKeys → const Set<String>
Record keys the server owns or that only exist in responses.