pCanvas property

PCanvas? get pCanvas

Returns the root PCanvas if this element is attached.

Implementation

PCanvas? get pCanvas {
  final parent = this.parent;
  if (parent == null) return null;
  return parent is PCanvas ? parent : parent.pCanvas;
}