distinct method

List<T> distinct()

Remove duplicate values from the list.

Implementation

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