append method

void append({
  1. required T item,
  2. bool animation = true,
})

Append Grid Item to update itemList, and render DragGrid

Implementation

void append({required T item, bool animation = true}) {
  _itemList.removeWhere((opt) => opt == item);
  _animation = animation;
  _itemList.add(item);
  notifyListeners();
}