set method

void set(
  1. num index, [
  2. Function? value
])

Sets an element stored at a given index to a given value.

Implementation

void set(
  _i2.num index, [
  _i2.Function? value,
]) {
  _i6.callMethod(
    this,
    'set',
    [
      index,
      value ?? _i7.undefined,
    ],
  );
}