notNull method

Stream<T> notNull()

Transforms a stream of type T? to type T by filtering out nulls.

Implementation

Stream<T> notNull() => where((x) => x != null).cast<T>();