whereNotNull<T> static method

List<T> whereNotNull<T>(
  1. Iterable<T?> list
)

Returns list with null values removed.

Implementation

static List<T> whereNotNull<T>(Iterable<T?> list) => [
  for (final v in list) ?v,
];