addElement method

  1. @override
void addElement(
  1. PCanvasElement element
)
override

Adds an element to this instances.

Implementation

@override
void addElement(PCanvasElement element) {
  _elements.add(element);
  element.parent = this;

  _elements.sortByZIndex();
  requestRepaint();
}