removeNulls method

void removeNulls()

Removes all nulls from the List.

See also: whereNotNull in FicIterableExtension for a lazy version.

See also: removeDuplicates which can also remove nulls.

Implementation

void removeNulls() {
  removeWhere((element) => element == null);
}