mapMany<TRes> method

Iterable<TRes> mapMany<TRes>(
  1. Iterable<TRes>? selector(
    1. T item
    )
)

Implementation

Iterable<TRes> mapMany<TRes>(
    Iterable<TRes>? Function(T item) selector) sync* {
  for (var item in this) {
    final res = selector(item);
    if (res != null) yield* res;
  }
}