removeById method

void removeById(
  1. dynamic id
)

Implementation

void removeById(dynamic id) {
  if (_children.isEmpty) {
    _items.removeWhere((item) => item.id == id);
  }
  return _children.forEach((element) {
    element.removeById(id);
  });
}