set method

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

Set the element at the given index to a given value. @param {number} i int The index of the element to set. @param {T} val The value to set at the index.

Implementation

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