whereSet method

Set<E> whereSet(
  1. bool predicate(
    1. E element
    )
)

Returns a new set with elements that satisfy the given predicate.

Implementation

Set<E> whereSet(bool Function(E element) predicate) {
  return Set.from(where(predicate));
}