removeNulls method

List<T> removeNulls()

Implementation

List<T> removeNulls() {
  return where((element) => element != null).cast<T>().toList();
}