whereNotNull<R extends Object> method

Stream<R> whereNotNull<R extends Object>()

Emits only non-null values, narrowing the type to R.

Implementation

Stream<R> whereNotNull<R extends Object>() => where((e) => e != null).cast<R>();