Returns the root PCanvas if this element is attached.
PCanvas? get pCanvas { final parent = this.parent; if (parent == null) return null; return parent is PCanvas ? parent : parent.pCanvas; }