sendUdpMessage method

void sendUdpMessage(
  1. String message,
  2. InternetAddress address,
  3. int port
)

Implementation

void sendUdpMessage(String message, InternetAddress address, int port) {
  if (_udpSocket != null) {
    final data = Uint8List.fromList(message.codeUnits);
    _udpSocket?.send(data, address, port);
  }
}