closeDevice method

Future<void> closeDevice(
  1. String deviceId
)

Close connection to a specific device.

Implementation

Future<void> closeDevice(String deviceId) async {
 try {
   await _channel.invokeMethod('closeDevice', {'deviceId': deviceId});
 } on PlatformException catch (e) {
   throw Exception('Failed to close device: ${e.message}');
 }
  }