sendDatagram method
void
sendDatagram({})
inherited
Sends a datagram to the specified addresses.
addresses An iterable of FullAddress objects representing the
destinations to send the datagram to.
datagram The Uint8List containing the datagram data to be sent.
This method iterates through all available transports and sends the datagram using each one, ensuring that the message is delivered to all specified destinations.
Implementation
void sendDatagram({
required Iterable<FullAddress> addresses,
required Uint8List datagram,
}) {
for (final t in transports) {
t.send(addresses, datagram);
}
}