clearNodes method

void clearNodes()

Clear the children list.

Implementation

void clearNodes() {
  if (isEmptyContent) return;

  for (var node in _content!) {
    node.parent = null;
  }

  _content!.clear();
}