distinct property

List<T> get distinct

Implementation

List<T> get distinct {
  final Set<T> items = {};
  return where(items.add).toList();
}