whereType<T> method

Stream<T> whereType<T>()

Returns a Stream with all elements that have type T.

Implementation

Stream<T> whereType<T>() => where((value) => value is T).cast<T>();