close method
Clean up any resources used by this integration This method MUST be implemented to prevent memory leaks and restore original system state
Implementation
@override
Future<void> close() async {
if (!_isActive) return;
// Always restore original handlers (even when null)
FlutterError.onError = _originalOnError;
ui.PlatformDispatcher.instance.onError = _originalOnPlatformError;
_originalOnError = null;
_originalOnPlatformError = null;
_hub = null;
_isActive = false;
ObslyLogger.debug('CrashIntegration closed');
}