createComponentView method
void
createComponentView(
- Expression componentViewExpr,
- Expression componentExpr,
- Expression projectedNodes
Implementation
void createComponentView(
o.Expression componentViewExpr,
o.Expression componentExpr,
o.Expression projectedNodes,
) {
final createExpr =
projectedNodes is o.LiteralArrayExpr && projectedNodes.entries.isEmpty
? componentViewExpr.callMethod('create', [componentExpr])
: componentViewExpr.callMethod('createAndProject', [
componentExpr,
projectedNodes,
]);
_createMethod.addStmt(createExpr.toStmt());
}