isSortedBy<K extends Comparable> method

Bloom<bool> isSortedBy<K extends Comparable>(
  1. K keyOf(
    1. E element
    )
)

Returns true if this collection is sorted by the natural order of keyOf reactively.

  • keyOf: Function extracting the comparable key from each element.

Implementation

Bloom<bool> isSortedBy<K extends Comparable<dynamic>>(
        K Function(E element) keyOf) =>
    computed((via) =>
        via(bloom).isSortedByCompare<K>(keyOf, (a, b) => a.compareTo(b)));