insertAt method

void insertAt(
  1. num i,
  2. T val
)

Insert a value before the index i.

Be careful not to call this method while iterating over the collection. @param {number} i int The index to insert before. @param {T} val The value to insert.

Implementation

void insertAt(
  _i2.num i,
  T val,
) {
  _i4.callMethod(
    this,
    'insertAt',
    [
      i,
      val,
    ],
  );
}