description

# promiseToFutureAsMap function Null safety

Future<Map<String, dynamic>?> promiseToFutureAsMap (

1. dynamic jsPromise

)

Convert a JS Promise to a Future<Map<String, dynamic>>.

On a successful result the native JS result will be converted to a Dart Map. See `convertNativeToDart_Dictionary`. On a rejected promise the error is forwarded without change.

## Implementation

    Future<Map<String, dynamic>?> promiseToFutureAsMap(jsPromise) =>
        promiseToFuture(jsPromise).then(convertNativeToDart_Dictionary);