replaceList method
Replaces the entire collection with newList.
Implementation
void replaceList(List<T> newList) {
_list
..clear()
..addAll(newList);
}
Replaces the entire collection with newList.
void replaceList(List<T> newList) {
_list
..clear()
..addAll(newList);
}