add method

  1. @override
void add(
  1. Selectable selectable
)
override

Adds the selectable into the registrar.

A Selectable must register with the SelectionRegistrar in order to receive selection events.

Implementation

@override
void add(Selectable selectable) {
  assert(_selectable == null);
  _selectable = selectable;
  _selectable!.addListener(_updateSelectionStatus);
  _selectable!.pushHandleLayers(_startHandleLayerLink, _endHandleLayerLink);
}