toSet method

Set<T> toSet()

Converts the List to a Set. The count of the resulting Set may be less than the count of this List if any duplicates were removed. @return {Set.

Implementation

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