unique<T> static method

List<T> unique<T>(
  1. Iterable<T> list
)

Returns the unique values of list.

Implementation

static List<T> unique<T>(Iterable<T> list) => list.toSet().toList();