currentElement property

Element currentElement

Selected Element consistent with the current selected RenderObject.

Setting candidates or calling clear resets the selection.

Returns null if the selection is invalid.

Implementation

Element get currentElement => _currentElement;
void currentElement= (Element element)

Implementation

set currentElement(Element element) {
  if (currentElement != element) {
    _currentElement = element;
    _current = element.findRenderObject();
  }
}