createRootNode method

  1. @override
void createRootNode(
  1. int instanceId
)
override

Implementation

@override
void createRootNode(int instanceId) async {
  var viewModel = renderContext.getInstance(instanceId);
  if (viewModel != null) {
    controllerManager.createRootNode(instanceId);
    var executor = viewModel.executor;
    if (executor != null) {
      _pageUpdateTasks.add(executor);
    }

    _pageUpdateTasks.add(viewModel.viewExecutor);
  } else {
    LogUtils.e(_kTag, "createRootNode  RootView Null error");
  }
}