innerText method

String innerText()

Returns the inner text of the node. If none is set, returns the "".

Implementation

String innerText() {
  return text ?? '';
}