• Hixie's avatar
    Canceling a dropdown menu selects null value · 0c6e3416
    Hixie authored
    Previously we didn't distinguish between canceling the menu (which
    popped the route with no return value, i.e. null) and explicitly
    selecting an item whose value is null (pop with value null). Both fired
    onChange(null).
    
    Now we box the return value so we can distinguish the two cases.
    
    I would have preferred to just disallow "null" as a value but it turns
    out people like being able to use "null" as a value for much the same
    reason we do, and it seems best for us to pay the complexity cost of
    boxing than having everyone else do it. :-)
    0c6e3416
Name
Last commit
Last update
..
src Loading commit data...
_embedder.yaml Loading commit data...
animation.dart Loading commit data...
gestures.dart Loading commit data...
http.dart Loading commit data...
material.dart Loading commit data...
painting.dart Loading commit data...
rendering.dart Loading commit data...
scheduler.dart Loading commit data...
services.dart Loading commit data...
widgets.dart Loading commit data...