FilePersistDocument<T> class

A file data store document is a minimal data model that is sent to the FilePersistorWorker isolate and persisted in the FileDataStore of name dataStoreName with the updated document data.

FilePersistDocument is sent to the worker instead of the Document class since that class has additional fields and references that would be unnecessarily copied into the isolate. It also has back references to the Loon instance which shouldn't be accessed in the isolate.

Constructors

FilePersistDocument({required String id, required String parent, required FilePersistorKey? key, required Json? data, required bool encrypted})

Properties

data Json?
The updated document data.
final
encrypted bool
Whether encryption is enabled for this document.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The document ID.
final
key FilePersistorKey?
The persistence key to use for the document. If not specified, defaults to the document's top-level collection key.
final
parent String
The document collection path.
final
path String
no setter
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