The description of the difference between two objects, in the context of how it will affect the rendering.
The values in this enum are ordered such that they are in increasing order of cost. A value with index N implies all the values with index less than N. For example, layout (index 3) implies paint (2).
- identical → RenderComparison
The two objects are identical (meaning deeply equal, not necessarily dart:core.identical).
- layout → RenderComparison
The two objects are different in ways that affect layout (and therefore paint).
For example, the size is changed.
This is the most drastic level of change possible.
RenderObject.markNeedsLayout would be necessary to handle this kind of change in a render object.
- metadata → RenderComparison
The two objects are identical for the purpose of layout, but may be different in other ways.
For example, maybe some event handlers changed.
- paint → RenderComparison
The two objects are different but only in ways that affect paint, not layout.
For example, only the color is changed.
RenderObject.markNeedsPaint would be necessary to handle this kind of change in a render object.
- values → List<RenderComparison>
A constant List of the values in this enum, in order of their declaration.