dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  _eventManager.clear();
  _theoLiveApi.removeEventListener(THEOliveApiEventTypes.PUBLICATIONLOADED.toLowerCase(), publicationLoadedEventListener);
  _theoLiveApi.removeEventListener(THEOliveApiEventTypes.PUBLICATIONLOADSTART.toLowerCase(), publicationLoadStartEventListener);
  _theoLiveApi.removeEventListener(THEOliveApiEventTypes.PUBLICATIONOFFLINE.toLowerCase(), publicationOfflineEventListener);
  _theoLiveApi.removeEventListener(THEOliveApiEventTypes.INTENTTOFALLBACK.toLowerCase(), intentToFallbackEventListener);
  _theoLiveApi.removeEventListener(THEOliveApiEventTypes.ENTERBADNETWORKMODE.toLowerCase(), enterBadNetworkModeEventListener);
  _theoLiveApi.removeEventListener(THEOliveApiEventTypes.EXITBADNETWORKMODE.toLowerCase(), exitBadNetworkModeEventListener);
}