onSnapshotStateChange abstract method

void Function()? onSnapshotStateChange(
  1. String snapshotId,
  2. void callback(
    1. SessionSnapshot snapshot
    ), {
  3. Map<String, dynamic>? context,
})

Registers callback for state changes to snapshotId. Returns an unsubscribe function, or null if not supported.

context carries the ambient request/action context so multi-tenant stores can route the subscription.

Implementation

void Function()? onSnapshotStateChange(
  String snapshotId,
  void Function(SessionSnapshot snapshot) callback, {
  Map<String, dynamic>? context,
});