RemoteRecord class

A record received from or sent to a synchronization backend.

Constructors

RemoteRecord({required String id, required String store, required String updated, required Map<String, Object?> data, List<String> attachments = const []})
Creates a remote record value.
const

Properties

attachments → List<String>
Remote attachment filenames for the backend's attachment field. The backend owns the mapping to its own wire field; the kernel sees only the generic attachment list.
final
data → Map<String, Object?>
Remote record payload.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Remote record ID.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → String
LocalPocket collection name.
final
updated → String
Server update timestamp used by the pull cursor.
final

Methods

copyWith({String? updated, Map<String, Object?>? data}) → RemoteRecord
Copies this record while replacing selected fields.
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