Currently if the objects in the tree have a custom hash code implementation and the value changes, the expanded state is forgotten. This causes our instance to collapse the entire tree every time one node is deleted. Using identity keeps the expanded state consistent even when the hash code changes.
Currently if the objects in the tree have a custom hash code implementation and the value changes, the expanded state is forgotten. This causes our instance to collapse the entire tree every time one node is deleted. Using identity keeps the expanded state consistent even when the hash code changes.

PiperOrigin-RevId: 195257019

angulardart/angular_components,angulardart/angular_components,angulardart/angular_components