toDart property

Future<T> get toDart

A Future that either completes with the result of the resolved JSPromise or propagates the error that the JSPromise rejected with.

If the JSPromise is rejected with a null or undefined value, a NullRejectionException will be thrown.

Implementation

external Future<T> get toDart;