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