dispose method

void dispose()

Implementation

void dispose() {
  if (kIsWeb) return;

  if (_statsTimer == null) return;

  _statsTimer?.cancel();
  _statsTimer = null;

  _writeStatsToFile();
  _senders.clear();
  _receivers.clear();
  _currentReceiverBitrate.clear();
  _prevStats.clear();
}