callAsync method

FutureOr<T> callAsync(
  1. dynamic call(
    1. E e
    )
)

Implementation

FutureOr<T> callAsync(dynamic Function(E e) call) {
  var ret = call(element);
  if (ret is Future) {
    return ret.thenChain((_) => this as T);
  } else {
    return this as T;
  }
}