add method

List<T> add(
  1. T val
)

Adds a given value to the end of the List.

Be careful not to call this method while iterating over the collection. @param {*} val @return {List.

Implementation

_i3.List<T> add(T val) => _i4.callMethod(
      this,
      'add',
      [val],
    );