delete method

bool delete(
  1. T val
)

Removes a given value (if found) from the List.

Be careful not to call this method while iterating over the collection. @param {T} val The value to remove. @return {boolean} true if the value was found and removed, false otherwise.

Implementation

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