functional_widget icon indicating copy to clipboard operation
functional_widget copied to clipboard

Cannot use parameter with same name as widget function

Open triallax opened this issue 4 years ago • 0 comments

Example:

@widget
Widget foo(String foo) => Text(foo);

functional_widget generates a widget class for this, but it doesn't compile because the field name in the generated class shadows the function.

I don't think it's possible to fix this issue, so perhaps the best path is to print an error in this case.

triallax avatar May 12 '20 01:05 triallax