clearElements method

  1. @override
void clearElements()
override

Clears the elements of this instance.

Implementation

@override
void clearElements() {
  if (_elements.isNotEmpty) {
    for (var e in _elements) {
      e.parent = null;
    }
    _elements.clear();
    requestRepaint();
  }
}