mapNotNull<R> method
Implementation
Iterable<R> mapNotNull<R>(R? Function(T element) transform) sync* {
for (final element in this) {
final transformed = transform(element);
if (transformed != null) yield transformed;
}
}
Iterable<R> mapNotNull<R>(R? Function(T element) transform) sync* {
for (final element in this) {
final transformed = transform(element);
if (transformed != null) yield transformed;
}
}