text top-level property

dynamic get text

The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.

MDN Reference

Implementation

_i2.dynamic get text => _i4.getProperty(
      _self,
      'Text',
    );