futureToPromise<T> function
Implementation
Promise futureToPromise<T>(Future<T> future) {
return Promise(allowInterop((Function resolve, Function reject) {
future.then((result) => resolve(result), onError: reject);
}));
}
Promise futureToPromise<T>(Future<T> future) {
return Promise(allowInterop((Function resolve, Function reject) {
future.then((result) => resolve(result), onError: reject);
}));
}