then method

Promise then(
  1. dynamic onFulfilled(
    1. dynamic value
    )?, [
  2. dynamic onRejected(
    1. dynamic error
    )
])

Implementation

external Promise then(dynamic Function(dynamic value)? onFulfilled,
    [dynamic Function(dynamic error) onRejected]);