isWhiteSpaceContent property

  1. @override
bool get isWhiteSpaceContent
override

Returns true if this node only have white space content.

Implementation

@override
bool get isWhiteSpaceContent {
  if (hasOnlyTextNodes) {
    return DOMNode.regexpWhiteSpace.hasMatch(text);
  }
  return false;
}