disposePreview method

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

This method is used to clear the resources observers.

Implementation

@override
Future<void> disposePreview() async {
  bool? val = false;
  try {
    val = await mirrorFlyCallMethodChannel.invokeMethod('disposePreview');
    LogMessage.d('disposePreview', ' $val');
    return;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (e) {
    LogMessage.d("Exception ", " $e");
    rethrow;
  }
}