updateWidget method

void updateWidget(
  1. RenderNode? node,
  2. VoltronMap? newProps
)

Implementation

void updateWidget(RenderNode? node, VoltronMap? newProps) {
  if (node != null && newProps != null && newProps.size() > 0) {
    final controller = findController(node.name);

    if (controller != null) {
      ControllerUpdateUtil.updateProps(controller, node, newProps);
      controller.onAfterUpdateProps(_context, node);
    }
  }
}