• Todd Volkert's avatar
    Remove duplicate code in Element.rebuild() and BuildOwner.buildScope() (#71940) · c8f07aad
    Todd Volkert authored
    Element.rebuild() and BuildOwner.buildScope() both had code to
    manager the `BuildOwner._debugCurrentBuildTarget` state variable.
    Unfortunately, only one of the two places was using a try/finally
    to ensure that the state variable was restored even if an error
    was thrown.
    
    This creates a private method to unify the copy/pasted code.
    c8f07aad
Name
Last commit
Last update
..
src Loading commit data...
analysis_options_user.yaml Loading commit data...
animation.dart Loading commit data...
cupertino.dart Loading commit data...
foundation.dart Loading commit data...
gestures.dart Loading commit data...
material.dart Loading commit data...
painting.dart Loading commit data...
physics.dart Loading commit data...
rendering.dart Loading commit data...
scheduler.dart Loading commit data...
semantics.dart Loading commit data...
services.dart Loading commit data...
widgets.dart Loading commit data...