compareTo method

RenderComparison compareTo(
  1. StrutStyle other
)

Describe the difference between this style and another, in terms of how much damage it will make to the rendering.

See also:

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;
}