attached property

bool attached

Whether this node is in a tree whose root is attached to something.

This becomes true during the call to attach.

This becomes false during the call to detach.

Implementation

bool get attached => _owner != null;