isSortedByCompare<K> method

Bloom<bool> isSortedByCompare<K>(
  1. K keyOf(
    1. E element
    ),
  2. int compare(
    1. K a,
    2. K b
    )
)

Returns true if this collection is sorted by compare of keyOf reactively.

  • keyOf: Function extracting the sort key from each element.
  • compare: Comparator comparing extracted sort keys.

Implementation

Bloom<bool> isSortedByCompare<K>(
        K Function(E element) keyOf, int Function(K a, K b) compare) =>
    computed((via) => via(bloom).isSortedByCompare<K>(keyOf, compare));