disconnect method

Future<void> disconnect(
  1. String deviceId
)

disconnect from a device.

Implementation

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