toComparator property

Comparator<T> get toComparator

Implementation

Comparator<T> get toComparator => (a, b) => this(a).compareTo(this(b));