add method

  1. @override
void add(
  1. E element
)
override

Adds value to the end of this list, extending the length by one.

Throws an UnsupportedError if the list is fixed-length.

Implementation

@override
void add(E element) {
  assert(!isDisposed);
  _list.add(element);
  _dirty = true;
  if (emitDetailedChanges)
    _changes.add(ListModification.insert(length, element));
}