compareTo method Null safety

RenderComparison compareTo(
  1. InlineSpan other

Describe the difference between this span and another, in terms of how much damage it will make to the rendering. The comparison is deep.

Comparing InlineSpan objects of different types, for example, comparing a TextSpan to a WidgetSpan, always results in RenderComparison.layout.

See also:


RenderComparison compareTo(InlineSpan other);