createViewModel method

void createViewModel(
  1. RenderNode node,
  2. VoltronMap? initialProps
)

Implementation

void createViewModel(RenderNode node, VoltronMap? initialProps) {
  var controller = findController(node.name);
  if (controller != null && node.checkRenderViewModel()) {
    ControllerUpdateUtil.updateProps(controller, node, initialProps);
    controller.onAfterUpdateProps(_context, node);
  }
}