FutureOfJSAnyToJSPromise<T extends JSAny?> extension

Conversions from Future to JSPromise where the Future returns a value.

on

Properties

toJS JSPromise<T>

Available on Future<T>, provided by the FutureOfJSAnyToJSPromise extension

A JSPromise that either resolves with the result of the completed Future or rejects with its error if it is a JS value and otherwise rejects with a JS Error that wraps its Dart error value.
no setter