removeInteractableFromId method

void removeInteractableFromId(
  1. String id, {
  2. bool notify = true,
})

Removes an interactable object by its Interactable.id.

Implementation

void removeInteractableFromId(String id, {bool notify = true}) {
  Interactable? interactable = getInteractableById(id);
  if (interactable != null) {
    removeInteractable(interactable, notify: notify);
  }
}