mount method
Implementation
void mount(Component root) {
if (_mounted) {
throw StateError('ComponentRuntime is already mounted');
}
rootComponent = root;
root.attach(this);
RenderContext.run(this, () {
final tree = resolveNode(root.render());
_currentTree = tree;
renderer.mount(tree);
_mounted = true;
});
}