I want to call the state method in answer file.
CodePudding user response:
just replace the Function Type To VoidCallback
final VoidCallback selectHandler
CodePudding user response:
in your declaration, you can change Function to either Function() or VoidCallback.