deleteRoot method

void deleteRoot(
  1. int id, [
  2. RenderTree? renderTree
])

Implementation

void deleteRoot(int id, [RenderTree? renderTree]) {
  final _renderTree = renderTree ?? _controllerRegistry.getRenderTree(id);
  if (_renderTree != null) {
    _renderTree.clear();
    _controllerRegistry.removeRenderTree(_renderTree);
  }
}