compactMap<T> method
Implementation
Iterable<T> compactMap<T>(T? Function(E) f) sync* {
for (final e in this) {
final te = f(e);
if (te != null) yield te;
}
}
Iterable<T> compactMap<T>(T? Function(E) f) sync* {
for (final e in this) {
final te = f(e);
if (te != null) yield te;
}
}