parent property

Node? parent

The parent of this node, or null if it doesn't have a parent.

// Hide the parent
myNode.parent.visible = false;

Implementation

Node? get parent => _parent;