map<R> method

  1. @override
ValueStream<R> map<R>(
  1. R mapper(
    1. T input
    )
)
override

Basics of converting something over

Implementation

@override
ValueStream<R> map<R>(R mapper(T input)) {
  return (_isResolved
      ? HStream<R>(mapper(first!), after.map(mapper))
      : FStream<R>.ofFuture(_firstFuture.then((value) => value == null ? null : mapper(value)), after.map(mapper)));
}