UdpSocket constructor

UdpSocket({
  1. required int? port,
  2. bool quiet = false,
  3. SocketInfo? destination,
  4. bool keepDestination = false,
})

Opens a UDP socket on the given port that can send and receive data.

Implementation

UdpSocket({
  required int? port,
  this.quiet = false,
  this.destination,
  this.keepDestination = false,
}) : _port = port;