whereNotNull property

List<T> get whereNotNull

Filters out all null values from this iterable.

Implementation

List<T> get whereNotNull =>
    where((T? element) => element != null).cast<T>().toList();