currentElement property

Element? get 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 {
  return _currentElement?.debugIsDefunct ?? true ? null : _currentElement;
}
set currentElement (Element? element)

Implementation

set currentElement(Element? element) {
  if (element?.debugIsDefunct ?? false) {
    _currentElement = null;
    _current = null;
    notifyListeners();
    return;
  }
  if (currentElement != element) {
    _currentElement = element;
    _current = element!.findRenderObject();
    notifyListeners();
  }
}