destroySdk method

  1. @override
Future<void> destroySdk()
override

Cleans up resources and destroys the SDK instance.

This method should be implemented to properly clean up any resources and connections established by the SDK on the native platform.

Implementation

@override
Future<void> destroySdk() async {
  try {
    await methodChannel.invokeMethod('destroySdk');
  } on PlatformException catch (e) {
    log("Error destroying SDK: ${e.message}");
    rethrow; // Re-throw the exception to be handled in Flutter.
  }
}