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