setItems method

void setItems(
  1. List<T> items, [
  2. bool insertable = true
])

Implementation

void setItems(List<T> items, [bool insertable = true]) {
  super.onNotifyWithCallback(() {
    if (insertable) {
      var list = List<T>.from(this.items);
      list.addAll(items);
      this.items = list;
    } else {
      this.items = items;
    }
  });
}