onWorkerRecovered property
void Function()?
onWorkerRecovered
getter/setter pair
Optional callback invoked after _recoverWorkerInternal completes a
successful auto-recovery. All Dart-side connection / statement / txn ids
captured before the crash are invalid; consumers (e.g. the repository)
should clear their own caches in this callback.
Assign null to clear the callback. Errors thrown by the callback are
logged and swallowed so they cannot block the recovery cycle.
Implementation
void Function()? onWorkerRecovered;