isChanged method

bool isChanged(
  1. TextItem oldTextItem
)

Implementation

bool isChanged(TextItem oldTextItem) {
  bool isTextChanged() {
    return oldTextItem.text.data != text.data ||
        oldTextItem.text.style != text.style;
  }

  return isTextChanged() ||
      oldTextItem.space != space ||
      oldTextItem.startAngle != startAngle ||
      oldTextItem.startAngleAlignment != startAngleAlignment ||
      oldTextItem.direction != direction;
}