Home > database >  The argument type 'Function' can't be assigned to the parameter type 'void Funct
The argument type 'Function' can't be assigned to the parameter type 'void Funct

Time:11-08

enter image description here

I want to call the state method in answer file. enter image description here

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.

  • Related