I was wondering if there is a way how I can use a Future Builder together with a FutureOr<T> typed future-parameter?
I was wondering if there is a way how I can use a Future Builder together with a FutureOr<T> typed future-parameter?
The Future class has numerous constructors that can construct a Future<T> from a FutureOr<T>:
Any of them should work, but if I'd use Future<T>.value or Future<T>.new:
FutureBuilder(future: Future.value(maybeFuture), ...)