broadcastMessage method
Broadcasts a message to every connected device
Implementation
void broadcastMessage(NearbyMessage message) {
for (var device in connectedDevices) {
device.sendMessage(message);
}
}
Broadcasts a message to every connected device
void broadcastMessage(NearbyMessage message) {
for (var device in connectedDevices) {
device.sendMessage(message);
}
}