saveSnapshot abstract method
Future<String?>
saveSnapshot(
- String? snapshotId,
- SnapshotMutator mutator, {
- Map<
String, dynamic> ? context,
Atomically reads the current snapshot (if snapshotId is provided),
passes it to mutator, and persists the result.
context carries the ambient request/action context (e.g. the
authenticated user) so multi-tenant stores can route writes.
Returns the snapshotId that was used, or null when the mutator
returned null.
Implementation
Future<String?> saveSnapshot(
String? snapshotId,
SnapshotMutator mutator, {
Map<String, dynamic>? context,
});