filterNotNull method
Returns a list containing all elements that are not null
.
Implementation
KtList<T> filterNotNull() {
final list = filterNotNullTo(mutableListOf<T>());
// TODO ping dort-lang/sdk team to check type bug
// When in single line: type "DartMutableList<String>' is not a subtype of type 'Null"
return list;
}