closeUsbConnection method
Implementation
Future<bool?> closeUsbConnection() async {
try {
final closeResult = await methodChannel.invokeMethod<bool>('closeUSB');
return closeResult;
} on PlatformException catch (e) {
print("Failed to close USB connection: '${e.message}'.");
return false;
}
}