keysWhere method

Iterable<K> keysWhere(
  1. bool condition(
    1. V
    )
)

Returns an iterable of keys where the associated values satisfy the given condition.

The condition function is applied to each value to determine whether its corresponding key should be included in the result.

Implementation

Iterable<K> keysWhere(bool Function(V) condition) => entries
    .where((entry) => condition(entry.value))
    .map((entry) => entry.key);