callAsync method

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

Implementation

Future<T> callAsync(dynamic Function(E e) call) => then((o) {
  var ret = o.callAsync(call);
  if (ret is Future) {
    final future = ret as Future;
    return future.thenChain((o) => o as T);
  } else {
    return ret as T;
  }
});