createSnapshot method

  1. @override
Future<Snapshot> createSnapshot(
  1. String documentId
)
override

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;
}