FilePersistDocument 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 key, required String dataStoreName, required Json? data, required bool encryptionEnabled})

Properties

data Json?
The updated document data.
final
dataStoreName String
The name of the file data store that the document should be persisted in.
final
encryptionEnabled bool
Whether encryption is enabled for this document.
final
hashCode int
The hash code for this object.
no setterinherited
key String
The document key of format collection:id.
final
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