remove method

void remove(
  1. T item
)

Implementation

void remove(T item) {
  if (_children.isEmpty) {
    _items.removeWhere((i) => i.item == item);
  }
  for (var element in _children) {
    element.remove(item);
  }
}