normalized method

TextDecorationRange normalized()

Implementation

TextDecorationRange normalized() {
  if (startOffset <= endOffset) {
    return this;
  }
  return TextDecorationRange(
    startOffset: endOffset,
    endOffset: startOffset,
    styleKey: styleKey,
  );
}