whereNull method

Stream<T?> whereNull()

Creates a new stream from this stream that discards non-null elements.

Implementation

Stream<T?> whereNull() => where((x) => x == null).cast<T?>();