disconnectFromEndpoint method

Future<void> disconnectFromEndpoint(
  1. String endpointId
)

Disconnects from a given device by its endpointId

Implementation

Future<void> disconnectFromEndpoint(String endpointId) async {
  var connectedDevice = _findDevice(connectedDevices, endpointId);
  if (connectedDevice == null) {
    return;
  }

  await nearbyCross.disconnectFrom(endpointId);
}