diff --git a/mosaic-runtime/src/commonMain/kotlin/com/jakewharton/mosaic/text/AnnotatedString.kt b/mosaic-runtime/src/commonMain/kotlin/com/jakewharton/mosaic/text/AnnotatedString.kt index fe23ea29..54b5a661 100644 --- a/mosaic-runtime/src/commonMain/kotlin/com/jakewharton/mosaic/text/AnnotatedString.kt +++ b/mosaic-runtime/src/commonMain/kotlin/com/jakewharton/mosaic/text/AnnotatedString.kt @@ -3,6 +3,7 @@ package com.jakewharton.mosaic.text import androidx.compose.runtime.Immutable import androidx.compose.runtime.Stable import com.jakewharton.mosaic.text.AnnotatedString.Builder +import dev.drewhamilton.poko.Poko /** * The basic data structure of text with multiple styles. To construct an [AnnotatedString] you @@ -79,8 +80,8 @@ public class AnnotatedString internal constructor( * @param start The start of the range where [item] takes effect. It's inclusive * @param end The end of the range where [item] takes effect. It's exclusive */ - @Immutable - public data class Range(val item: T, val start: Int, val end: Int) { + @[Immutable Poko] + public class Range(public val item: T, public val start: Int, public val end: Int) { init { require(start <= end) { "Reversed range is not supported" }