compareTo method
- StrutStyle other
Describe the difference between this style and another, in terms of how much damage it will make to the rendering.
See also:
- TextSpan.compareTo, which does the same thing for entire TextSpans.
Implementation
RenderComparison compareTo(StrutStyle other) {
if (identical(this, other)) {
return RenderComparison.identical;
}
if (fontFamily != other.fontFamily ||
fontSize != other.fontSize ||
fontWeight != other.fontWeight ||
fontStyle != other.fontStyle ||
height != other.height ||
leading != other.leading ||
forceStrutHeight != other.forceStrutHeight ||
!listEquals(fontFamilyFallback, other.fontFamilyFallback)) {
return RenderComparison.layout;
}
return RenderComparison.identical;
}