asyncMap<E> method

  1. @override
Stream<E> asyncMap<E>(
  1. FutureOr<E> convert(
    1. List<int>
    )?
)
override

Creates a new stream with each data event of this stream asynchronously mapped to a new event.

This acts like map, in that convert function is called once per data event, but here convert may be asynchronous and return a Future. If that happens, this stream waits for that future to complete before continuing with further events.

The returned stream is a broadcast stream if this stream is.

Implementation

@override
_i4.Stream<E> asyncMap<E>(_i4.FutureOr<E> Function(List<int>)? convert) =>
    (super.noSuchMethod(
      Invocation.method(
        #asyncMap,
        [convert],
      ),
      returnValue: _i4.Stream<E>.empty(),
    ) as _i4.Stream<E>);