distinct method

Iterable<T> distinct()

Returns a list containing only distinct elements from the given array.

Implementation

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