indexOf method

num indexOf(
  1. T val
)

Returns the index of the given value if it is in this List. @param {T} val The value to check. @return {number} int returns -1 if the value is not in this list.

Implementation

_i2.num indexOf(T val) => _i4.callMethod(
      this,
      'indexOf',
      [val],
    );