This issue tracks migrations and work that is needed before shipping/flipping the flag.
Context: #61525 (comment)
It used to be possible to mark formal parameters (in general, not just the ones in constructors) as final. This used to mean that the formal parameter itself was immutable. However, we decided that this feature should no longer be supported, which means that it will be an error to put final on a formal parameter of any function other than a declaring constructor
This does give rise to some inconveniences for developers who prefer to use immutable formal parameters (they're forced to change their code to not do that any more). However, final formal parameters are not common today, and it's not hard to teach dart fix to remove final in the locations where it is an error to have it.
This issue tracks migrations and work that is needed before shipping/flipping the flag.
avoid_final_parameters#61812varkeyword.Context: #61525 (comment)
factory()breakages. [Primary Constructors] Warning for ambiguous factory method/factory constructor #61910avoid_final_parameterslint andvar_with_no_type_annotation