NetxDatagram constructor

NetxDatagram({
  1. Pointer<NetAddress>? addr,
  2. int port = 0,
  3. Uint8List? buf,
})

Implementation

NetxDatagram({Pointer<NetAddress>? addr, this.port = 0, this.buf}) {
  this.addr = addr ?? nullptr;
}