🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

EditingBuffer

The editing buffer This class manages the all editing relate states, editing buffers, selection, styles, etc.

Source set: Common
public class EditingBuffer(
    /** The initial text of this editing buffer */
    text: AnnotatedString,
    /**
     * The initial selection range of this buffer. If you provide collapsed selection, it is treated
     * as the cursor position. The cursor and selection cannot exists at the same time. The
     * selection must points the valid index of the initialText, otherwise IndexOutOfBoundsException
     * will be thrown.
     */
    selection: TextRange,
)

The editing buffer

This class manages the all editing relate states, editing buffers, selection, styles, etc.