addInteractable method
Adds an Interactable to the interactables list.
Implementation
void addInteractable(Interactable interactable, {bool notify = true}) {
_interactables.add(interactable);
interactable.addListener(notifyListeners);
if (notify) {
notifyListeners();
}
}