then method

*<Null safety>*

Comparator<T> then (Comparator<T> tieBreaker)

Implementation

Comparator<T> then(Comparator<T> tieBreaker) => (T a, T b) {
      var result = this(a, b);
      if (result == 0) result = tieBreaker(a, b);
      return result;
    };