createSnapshot method
Snapshots documentId and hands the snapshot to afterSnapshot.
Implementation
@override
Future<Snapshot> createSnapshot(String documentId) async {
final snapshot = (await requireDocument(documentId)).takeSnapshot();
await afterSnapshot(documentId, snapshot);
return snapshot;
}