replaceList method

void replaceList(
  1. List<T> newList
)
inherited

Replaces the entire collection with newList.

Implementation

void replaceList(List<T> newList) {
  _list
    ..clear()
    ..addAll(newList);
}