SharedPreferencesSnapshotStorage constructor
SharedPreferencesSnapshotStorage({})
Creates a SharedPreferences-based snapshot storage.
Parameters:
defaultKey: The default key to use when saving/loading without specifying a key. Defaults to 'latest'.keyPrefix: Prefix to use for all storage keys. Defaults to 'checkpoint_'. Change this if you need to avoid conflicts with other SharedPreferences keys.
Implementation
SharedPreferencesSnapshotStorage({
this.defaultKey = 'latest',
this.keyPrefix = 'checkpoint_',
});