retransmitPacket method

void retransmitPacket(
  1. int sequence
)

Retransmits a specific packet by its sequence number.

Implementation

void retransmitPacket(int sequence) {
  final packet = _sentPackets[sequence];
  if (packet != null) {
    onRetransmit?.call(packet);
  }
}