setItem method

void setItem(
  1. T item
)

Implementation

void setItem(T item) {
  super.onNotifyWithCallback(() {
    var list = List<T>.from(items);
    list.add(item);
    items = list;
  });
}