Clears the elements of this instance.
@override void clearElements() { if (_elements.isNotEmpty) { for (var e in _elements) { e.parent = null; } _elements.clear(); } }