Promise<T> constructor

Promise<T>(
  1. void callback(
    1. dynamic resolve(
      1. T
      ),
    2. Function reject
    )
)

Implementation

external factory Promise(
    void Function(Function(T) resolve, Function reject) callback);