disconnect method
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}');
}
}