removeObject method

void removeObject(
  1. EscapeGameObject object, {
  2. bool notify = true,
})

Removes the specified object from this inventory.

Implementation

void removeObject(EscapeGameObject object, {bool notify = true}) {
  _objects.remove(object);
  if (notify) {
    notifyListeners();
  }
}