distinct method

Iterable<T> distinct()

Returns distinct elements (removes duplicates)

Implementation

Iterable<T> distinct() => toSet();