NodeReference.textNode constructor

NodeReference.textNode(
  1. CompileViewStorage? _storage,
  2. int nodeIndex, {
  3. Expression? initialValue,
})

Create a NodeReference for a Text node.

Implementation

NodeReference.textNode(
  this._storage,
  int nodeIndex, {
  o.Expression? initialValue,
})  : _type = o.importType(Identifiers.HTML_TEXT_NODE),
      _name = '_text_$nodeIndex',
      _initialValue = initialValue;