remove method

dynamic remove(
  1. T object, {
  2. TWPriority? priority,
})

Implementation

remove(
  T object, {
  TWPriority? priority,
}) {
  if (priority != null) {
    _containers[priority]!.remove(object);
  } else {
    for (final container in _containers.values) {
      container.remove(object);
    }
  }
}