whereNotNull method

List<T> whereNotNull()

Filters list for not null elements.

Implementation

List<T> whereNotNull() {
  final result = where((element) => element != null).toList();
  return result as List<T>;
}