I’m trying to pass a function that returns Future<Response>
as a parameter of a method.
I tried with the following code:
Future<String> _execute(Function<Future<Response>>() function) async { }
However, it does not compile. What is the correct syntax?