getSnapshotData method

Future<SessionSnapshot?> getSnapshotData({
  1. String? snapshotId,
  2. String? sessionId,
  3. Map<String, dynamic>? context,
  4. bool metadataOnly = false,
})

Reads a snapshot (applying the client transform). Requires a server store.

Pass metadataOnly to read the shaped metadata without the state payload.

Implementation

Future<SessionSnapshot?> getSnapshotData({
  String? snapshotId,
  String? sessionId,
  Map<String, dynamic>? context,
  bool metadataOnly = false,
}) => getSnapshotDataAction(
  GetSnapshotDataInput(
    snapshotId: snapshotId,
    sessionId: sessionId,
    metadataOnly: metadataOnly ? true : null,
  ),
  context: context,
);