Quick-fix return type could consider ==
and contains
#60618
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
Consider this code:
It will have a quick-fix for creating a
foo
getter. The output will look like:Although this is technically accurate, couldn't we suggest
int
as a return type here instead, @bwilkerson?The same rule would apply for
Iterable.contains
/Map.containsKey
/Map.containsValue
in that case:The text was updated successfully, but these errors were encountered: