dispose method

void dispose()

Method to clean the listeners

Implementation

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