disconnect method

  1. @override
Future<bool> disconnect(
  1. String deviceId
)
override

Implementation

@override
Future<bool> disconnect(String deviceId) async {
  final result = await _methodChannel.invokeMethod<bool?>('disconnect', {
    'deviceId': deviceId,
  });
  if (result == null) {
    throw PlatformException(code: "disconnect(): error retrieving value");
  }
  return result;
}