destroy method

void destroy()

Stops the loss timer and forgets every packet.

Implementation

void destroy() {
  _lossTimer?.cancel();
  _lossTimer = null;
  _sentPackets.clear();
}