notNull property

Iterable<T> notNull

Returns this iterable without any null values within this Iterable.

Not null items of Iterable is achieved by Iterable.where. Predicate of Iterable.where is (item) => item != null.

For more info about filtering refer to Iterable.where.

Implementation

Iterable<T> get notNull => this.where((_) => _ != null).toList();