LineBlockChange
data class LineBlockChange(val lineIndex: Int, val contentBefore: AnnotatedString, val contentAfter: AnnotatedString, val blockSpansBefore: List<RichSpanStyle>, val blockSpansAfter: List<RichSpanStyle>)(source)
One line's before/after snapshot for an atomic TextEditOperation.LineBlock. blockSpansBefore/blockSpansAfter list the line-anchored block span styles attached to the line in each state — restoring them rebuilds the gutter markers exactly. The paragraph/text indent itself lives in the captured content.
Constructors
Link copied to clipboard
constructor(lineIndex: Int, contentBefore: AnnotatedString, contentAfter: AnnotatedString, blockSpansBefore: List<RichSpanStyle>, blockSpansAfter: List<RichSpanStyle>)