removeItem method

void removeItem({
  1. required ITEM item,
})
inherited

将item从集合中移除 item 要移除的数据

Implementation

void removeItem({required T item}) {
  if (item == null || _items.length == 0) {
    return;
  }
  _items.remove(item);
}