List<E> distinct([Id Function(E element)? id, bool inplace = true]) { List<E> list = List.from(this); list.unique(id, inplace); return list; }