String getEffectiveText()

Returns a string of text content that is the concatenation of the text content's of the element's effective childNodes (the elements returned by getEffectiveChildNodes.

Source

String getEffectiveText() => jsElement.callMethod('getEffectiveTextContent');