addAll method Null safety
Appends all objects of values
to the end of the list.
Extends the length of the list by the number of objects in values
.
The list must be growable.
final numbers = <int>[1, 2, 3];
numbers.addAll([4, 5, 6]);
print(numbers); // [1, 2, 3, 4, 5, 6]
Implementation
void addAll(Iterable<T> values, {bool notifyChanges = true}) {
_value.addAll(values);
if (notifyChanges) {
_viewModel.notifyChanges([EmpireStateChanged.addedAllToList(values)]);
}
}