The description of the difference between two objects, in the context of how it will affect the rendering.

Used by TextSpan.compareTo and TextStyle.compareTo.

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).

Constants

identical RenderComparison

The two objects are identical (meaning deeply equal, not necessarily dart:core.identical).

const RenderComparison(0)
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.

const RenderComparison(3)
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.

const RenderComparison(1)
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.

const RenderComparison(2)
values List<RenderComparison>

A constant List of the values in this enum, in order of their declaration.

const List<RenderComparison>

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited