dispose method

void dispose()

Method to clean the listeners.

Implementation

void dispose() {
  _wrappedTrackList?.removeEventListener(AudioTracksEventTypes.ADDTRACK, forwardingkEventListener);
  _wrappedTrackList?.removeEventListener(AudioTracksEventTypes.REMOVETRACK, forwardingkEventListener);
  _wrappedTrackList?.removeEventListener(AudioTracksEventTypes.CHANGE, forwardingkEventListener);
  _eventManager.clear();
}