destroyRootView method

void destroyRootView(
  1. int id,
  2. bool isReload
)

Implementation

void destroyRootView(int id, bool isReload) {
  var removeViewModel = _rootViewModelMap[id];
  if (removeViewModel != null) {
    _loadContextMap.remove(id);
    _renderManager.onInstanceDestroy(id);
    _renderManager.deleteNode(id, id);
    _domHolder.removeRoot(_domHolder.id, id);
  }
  if (!isReload) _rootViewModelMap.remove(id);
}