attachRootComponent method
Sets app as the new root of the component tree and performs an initial build
Implementation
void attachRootComponent(Component app) async {
final buildOwner = _rootElement?._owner ?? createRootBuildOwner();
final element = _Root(child: app, rootRenderObject: createRootRenderObject()).createElement();
element._binding = this;
element._owner = buildOwner;
_rootElement = element;
buildOwner.performInitialBuild(element, completeInitialFrame);
}