thenCompare method

Comparator<T> thenCompare(
  1. Comparator<T> comparator
)

Implementation

Comparator<T> thenCompare(Comparator<T> comparator) => (a, b) {
      final firstResult = this.call(a, b);
      if (firstResult != 0) {
        return firstResult;
      } else {
        return comparator(a, b);
      }
    };