rootNode property Null safety

AbstractNode? rootNode

The unique object managed by this pipeline that has no parent.

This object does not have to be a RenderObject.

Implementation

AbstractNode? get rootNode => _rootNode;
void rootNode=(AbstractNode? value)

Implementation

set rootNode(AbstractNode? value) {
  if (_rootNode == value) {
    return;
  }
  _rootNode?.detach();
  _rootNode = value;
  _rootNode?.attach(this);
}