detach method

bool detach()

Removes this node from its parent, or from the parent it is on its way to.

Implementation

bool detach() => (parent ?? _pendingParent)?.remove(this) ?? false;