Closed
Description
I'm trying to setup a FlatButton. I know it takes something like onPressed
. I write new FlatButton()
and then code complete inside the parens. I scroll to find onPressed
(yay!) and hit enter.
Expected: add onPressed: () { }
Actual: onPressed:
That is, please fill in the function signature (which, in this case, is VoidCallback) when completing a named parameter that is a function.
I tried to code complete after the :
but all I found was:
I had to go to the docs to find out what onPressed
expected. I was hoping I could learn that through code completion.