Where<T> extension

Utilities to filter events.

on

Methods

asyncWhere(FutureOr<bool> test(T)) Stream<T>

Available on Stream<T>, provided by the Where extension

Discards events from this stream based on an asynchronous test callback.
whereType<S>() Stream<S>

Available on Stream<T>, provided by the Where extension

Discards events from this stream that are not of type S.