removeElement method

  1. @override
bool removeElement(
  1. PCanvasElement element
)
override

Removes element from this instance.

Implementation

@override
bool removeElement(PCanvasElement element) {
  var rm = _elements.remove(element);
  if (rm) {
    element.parent = null;
    requestRepaint();
  }
  return rm;
}