newFileMemoryVaultStore function
Creates a new in-memory FileVaultStore
path
: The base storage location for this storecodec
: TheStoreCodec
used to convert to/from a Map<String, dynamic>` representation to a binary representation
Implementation
Future<FileVaultStore> newFileMemoryVaultStore(
{String? path, StoreCodec? codec}) {
FileSystem fs = MemoryFileSystem();
return FileAdapter.build(fs, path ?? fs.systemTempDirectory.path)
.then((adapter) => FileVaultStore(adapter, false, codec: codec));
}