addObject method

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

Adds the specified object to this inventory.

Implementation

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