mapNotNull<R> method

Iterable<R> mapNotNull<R>(
  1. R? transform(
    1. T item
    )
)

Implementation

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