apply method
Called before relayout to restore the saved state and restart the layout in the same conditions
Implementation
@override
void apply(RichTextContext other) {
startOffset = other.startOffset;
endOffset = other.endOffset;
spanStart = other.spanStart;
spanEnd = other.spanEnd;
}