save abstract method
Saves a snapshot to storage.
Parameters:
snapshot: The snapshot to savekey: Optional key/identifier for the snapshot. If not provided, a default key will be used.
Returns: A Future that completes when the snapshot is saved.
Throws:
- Storage-specific exceptions (e.g., IOException for file storage)
Implementation
Future<void> save(Snapshot snapshot, [String? key]);