Open triallax opened 4 years ago
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.
Example:
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.