mapNotNull<V> method
Iterable<V>
mapNotNull<V>(
- V? mapper(
- T
Maps an Iterable (like map), but filters out any null values and cast the resulting Iterable to be null-safe.
Implementation
Iterable<V> mapNotNull<V>(V? Function(T) mapper) {
return map(mapper).filterNotNull();
}