then method

Promise then(
  1. void onFulfilled(
    1. T result
    ), [
  2. Function onRejected
])

Implementation

external Promise then(void Function(T result) onFulfilled, [Function onRejected]);