avoid capturing context in closures that don't need it #45603
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
type-enhancement
A request for a change that isn't a bug
In the code below
() => 10
would have a parent context capturingv
even though it does not need it. We could avoid linking closure context to parent context unless it really needs it.Related to flutter/flutter#79605
The text was updated successfully, but these errors were encountered: