destroyResources method
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;
}