add method

Set<T> add(
  1. T val
)

Adds a given value to the Set, if not already present.

Be careful not to call this method while iterating over the collection. @param {T} val The value to add to the Set; must not be null. @return {Set.

Implementation

_i3.Set<T> add(T val) => _i4.callMethod(
      this,
      'add',
      [val],
    );