destroyResources method

  1. @override
Future<String?> destroyResources()
override

destroyResources will destroy the resources and clear all the background threads from the memory.

Implementation

@override
Future<String?> destroyResources() async {
  final version =
      await methodChannel.invokeMethod<String>('embeddedSerial/destroy');
  return version;
}