In FlutterFlow, how can I make the return value or parameters of a custom function or action be of function type?

In FlutterFlow, how can I make the return value or parameters of a custom function or action be of function type? In custom code, I haven't found options for parameters and return values of type Function. However, I need to define a callback function with a return value of type Function.

When customizing a function or action, if the parameter is context, how can I pass the context as an argument? Alternatively, if there are no parameters, how can I directly use the context of the current page within the function?

In FlutterFlow, how can I reference context and utilize methods from flutter_flow_util.dart that have context parameters when customizing functions or actions? Alternatively, what are other methods to achieve this?

1
1 reply