FileSnapshotStorage constructor

FileSnapshotStorage({
  1. required Directory directory,
  2. String defaultKey = 'latest',
})

Creates a file-based snapshot storage.

Parameters:

  • directory: The directory where snapshots will be stored. If the directory doesn't exist, it will be created when needed.
  • defaultKey: The default key to use when saving/loading without specifying a key. Defaults to 'latest'.

Implementation

FileSnapshotStorage({required this.directory, this.defaultKey = 'latest'});