removeInteractable method

void removeInteractable(
  1. Interactable interactable, {
  2. bool notify = true,
})

Removes an Interactable from the interactables list.

Implementation

void removeInteractable(Interactable interactable, {bool notify = true}) {
  if (_interactables.remove(interactable)) {
    interactable.removeListener(notifyListeners);
    if (notify) {
      notifyListeners();
    }
  }
}