disconnect method

Future<bool> disconnect()

Disconnect from a device

Implementation

Future<bool> disconnect() async {
  try {
    return await _channel.invokeMethod('disconnect');
  } catch (e) {
    throw BluetoothException('Failed to disconnect: $e');
  }
}