removeById method

void removeById(
  1. dynamic id
)

Implementation

void removeById(dynamic id) {
  if (_children.isEmpty) {
    _items.removeWhere((item) => item.id == id);
  }
  for (var element in _children) {
    element.removeById(id);
  }
}