clear method

dynamic clear()

Clears the web unit's resources and unregisters observers

Implementation

clear() {
  TBLLogger.log('$TAG | dispose | unitId: $uniqueUnitId');
  // Clear local storage
  _unitExtraProperties.clear();
  // Unregister from parent page
  scrollController?.removeListener(_handleScroll);
  _webViewManager.dispose();
}