registerSessionReplayShutdown static method
Registers cleanup before Replay starts asynchronous initialization. Passing null removes the registration.
Implementation
static void registerSessionReplayShutdown(Future<void> Function()? cleanup) {
_sessionReplayShutdown = cleanup;
}