send method

  1. @override
void send(
  1. List<int> data, {
  2. SocketInfo? destination,
})

Sends data to the given destination.

Being UDP, this function does not wait for a response or even confirmation of a successful send and is therefore very quick and non-blocking.

Implementation

@override
void send(List<int> data, {SocketInfo? destination}) {
  if (!isEnabled) return;
  super.send(data, destination: destination);
}