Unexpected unnecessary_cast when cast is required for argument type #49269
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
devexp-warning
Issues with the analyzer's Warning codes
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This cast is necessary. Using a different pattern requires changing from
=>
to{return}
.The text was updated successfully, but these errors were encountered: