comparatorField method

Comparator<T> comparatorField([
  1. Comparator<F> fieldComparator = compareNaturalOrder
])

Implementation

Comparator<T> comparatorField([
  Comparator<F> fieldComparator = compareNaturalOrder,
]) =>
    compareByFieldNatural(
      this,
      comparator: fieldComparator,
    );