remove method

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

Removes the selectable from the registrar.

A Selectable must unregister itself if it is removed from the rendering tree.

Implementation

@override
void remove(Selectable selectable) {
  if (_additions.remove(selectable)) {
    // The same selectable was added in the same frame and is not yet
    // incorporated into the selectables.
    //
    // Removing such selectable doesn't require selection geometry update.
    return;
  }
  _removeSelectable(selectable);
  _scheduleSelectableUpdate();
}