DualDataStore class

Data can optionally be encrypted. Plaintext vs encrypted data is managed in two different stores, which is abstracted transparently to the data store manager through this implementation.

Constructors

DualDataStore(String name, {required DataStoreFactory factory, required DataStoreEncrypter encrypter})

Properties

hashCode int
The hash code for this object.
no setterinherited
isDirty bool
no setter
isEmpty bool
no setter
isHydrated bool
no setter
name String
The name of the file data store.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete() Future<void>
extract([String path = '']) Map<String, dynamic>
Returns a map of the subset of documents in the store under the given path. Data for the given path can exist in two different places:
get(String resolverPath, String path) → dynamic
graft(String resolverPath, String otherResolverPath, String? dataPath, DualDataStore other) → void
Grafts the data in the given other data store under resolver path otherResolverPath and data path dataPath into this data store under resolver path resolverPath at data path dataPath.
hasPath(String resolverPath, String path) bool
hasValue(String resolverPath, String path) bool
hydrate() Future<void>
inspect() Map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persist() Future<void>
recursiveDelete(String path) → void
Deletes the given path from the data store recursively. Documents under the given path could be stored in one of two places:
sync() Future<void>
toString() String
A string representation of this object.
inherited
writePath(String? resolverPath, String path, dynamic value, bool encrypted) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited