I have a simple form with a button to calculate the form. I figure it\'s better to hit the button to start the action of calculating and pass the variables to the dumb function
Use
onPressed: (){calculate(1, 2);},