sendMessage method

void sendMessage(
  1. NearbyMessage message, {
  2. bool dropMessage = false,
})

Sends message to the device identified with endpointId

Implementation

void sendMessage(NearbyMessage message, {bool dropMessage = false}) {
  authManager?.sign(message);

  if (!dropMessage) {
    messagesSent.add(message);
  }
  _nearbyCross.sendData(message.convertToBytes(), endpointId);
}