resolveBuild function

BaseContext resolveBuild (
  1. VNode node
)

Implementation

BaseContext resolveBuild(VNode node) {
  var component = node.component;
  if (component.isContainer) {
    var ctx = node.context.copy();
    ctx.childrens = node.context.childrens.map((child){
      if (child is String) {
        return child;
      } else if (child is Component) {
        var childNode = resolveBuild(child.node);
        return findContainerChild(childNode);
      }
      return child;
    }).toList();
    return ctx;
  }
  return resolveBuild(component.build().node).copy();
}