Allow @doNotStore on callback parameters #45895
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
It would be useful to be able to apply the
@doNotStore
annotation to parameters passed to callbacks in method signatures. This would allow implementations of methods that call these callbacks to provide parameters that are only valid during the lifetime of the callback, such as views on collections that are later changed after the callback returns.The text was updated successfully, but these errors were encountered: