addAll method Null safety

  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. The list must be growable.


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