reset static method
Resets the observability subsystem and restores original error handlers.
Implementation
static Future<void> reset() async {
if (_flutterHookInstalled) {
FlutterError.onError = _originalFlutterOnError;
_originalFlutterOnError = null;
_flutterHookInstalled = false;
}
if (_platformHookInstalled) {
PlatformDispatcher.instance.onError = _originalPlatformOnError;
_originalPlatformOnError = null;
_platformHookInstalled = false;
}
await _config.transport.close();
_config = BloomObservabilityConfig();
_ringBuffer = BloomBreadcrumbRingBuffer(maxCapacity: 100);
_isInitialized = false;
}