current property Null safety

RenderObject? current

Selected render object typically from the candidates list.

Setting candidates or calling clear resets the selection.

Returns null if the selection is invalid.

Implementation

RenderObject? get current => active ? _current : null;
void current=(RenderObject? value)

Implementation

set current(RenderObject? value) {
  if (_current != value) {
    _current = value;
    _currentElement = (value?.debugCreator as DebugCreator?)?.element;
  }
}