add method

view source

void add (T element) inherited

Implementation

void add(E element) {
  // This implementation only works for lists which allow `null` as element.
  this[this.length++] = element;
}