unmount method

void unmount()

Implementation

void unmount() {
  if (!_mounted) return;

  rootComponent?.onUnmount();
  renderer.unmount();

  rootComponent = null;
  _currentTree = null;
  _mounted = false;
}