then method

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

Implementation

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