NodeReference class

A reference to an HTML, Text, or View node created during AppView.build().

Implementers

Constructors

NodeReference(CompileViewStorage? _storage, OutputType? _type, int nodeIndex)
Create a NodeReference with a defined o.OutputType.
NodeReference.anchor(CompileViewStorage? _storage, int nodeIndex, [NodeReferenceVisibility _visibility = NodeReferenceVisibility.build])
Create a NodeReference for an anchor node for view containers.
NodeReference.html(CompileViewStorage? _storage, int nodeIndex)
Create a NodeReference for an HTML fragment (for i18n).
NodeReference.ngContent(CompileViewStorage? _storage, int nodeIndex)
Creates a NodeReference for a ng-content node.
NodeReference.parameter(CompileViewStorage _storage, OutputType? type, String name)
Create a NodeReference for a node passed as a parameter.
factory
NodeReference.rootElement()
Create a NodeReference for the root element of a view.
NodeReference.textNode(CompileViewStorage? _storage, int nodeIndex, {Expression? initialValue})
Create a NodeReference for a Text node.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
promoteToClassMember() → void
If accessed outside of build(), makes a variable into a class field.
toReadExpr() Expression
Returns an expression that reads from this variable or field.
toString() String
A string representation of this object.
inherited
toWriteStmt(Expression value) Statement
Returns an expression that writes value to this variable or field.

Operators

operator ==(Object other) bool
The equality operator.
inherited