isSortedBy<T, K extends Comparable<K>> function

Matcher isSortedBy<T, K extends Comparable<K>>(
  1. K keyOf(
    1. T
    )
)

Matches Iterables which are sorted by the keyOf property.

Implementation

Matcher isSortedBy<T, K extends Comparable<K>>(K Function(T) keyOf) =>
    _IsSorted<T, K>(keyOf, (a, b) => a.compareTo(b));