functional_widget
functional_widget copied to clipboard
Cannot use parameter with same name as widget function
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.