useFuturePromise<T> function

Promise<T> useFuturePromise<T>(
  1. Future<T> future
)

Implementation

Promise<T> useFuturePromise<T>(Future<T> future) {
  final snapshot = useFuture(future);
  return Promise.fromSnapshot(snapshot);
}