addAll method

  1. @override
void addAll (
  1. Iterable<T> iterable
)

Appends all objects of iterable to the end of this list.

Extends the length of the list by the number of objects in iterable. Throws an UnsupportedError if this list is fixed-length.

Implementation

@override
void addAll(Iterable<T> iterable) {
  _context.conditionallyRunInAction(() {
    final index = _list.length;
    _list.addAll(iterable);
    _notifyListUpdate(index, iterable.toList(growable: false), null);
  }, _atom);
}