filterNotNull method
Iterable<T>
filterNotNull()
Given an Iterable on a nullable type T?, filters out any null elements and cast the resulting Iterable to Iterable
Implementation
Iterable<T> filterNotNull() {
return where((e) => e != null).cast();
}