PromiseLike<T> constructor

PromiseLike<T>({
  1. Future<Object> then<TResult1, TResult2>([
    1. FutureOr<TResult1> (
      1. dynamic
      )?,
    2. FutureOr<TResult2> ([
      1. dynamic
      ])?
    ])?,
})

Implementation

factory PromiseLike(
        {_i2.Future<_i2.Object> Function<TResult1, TResult2>([
          _i4.FutureOr<TResult1> Function(_i2.dynamic)?,
          _i4.FutureOr<TResult2> Function([_i2.dynamic])?,
        ])? then}) =>
    PromiseLike._(then: then == null ? null : _i6.allowInterop(then));