addItem method

void addItem(
  1. ClusterItem newItem
)

Add on cluster item

Implementation

void addItem(ClusterItem newItem) {
  _items = List.from([...items, newItem]);
  updateMap();
}