build method

  1. @override
Object build(
  1. MetaObject context,
  2. ControllerManager controllerManager
)
override

Implementation

@override
Object build(MetaObject context, ControllerManager controllerManager) {
  var result = [];
  String varname = getValue('variable');
  var collection = parseObject(context, [], this, 'collection');
  var children = getValue('children');
  for(var item in collection) {
    var subcontext = MetaObjectWrapper(context);
    subcontext.getMetaData().set(varname, item);
    var subresult = buildTreeNodes(subcontext, controllerManager, children);
    result.addAll(subresult);
  }
  return result;
}