distinct method

List<T> distinct()

Returns a list with duplicate elements removed

Implementation

List<T> distinct() => toSet().toList();