Span

data class Span(val start: Int?, val end: Int?, val type: String?)

Represents a formatting span for text in Prismic content.

Holds details about the span's start, end, and type.

Constructors

Link copied to clipboard
constructor(start: Int?, end: Int?, type: String?)

Properties

Link copied to clipboard
val end: Int?

The end index of the span, if available.

Link copied to clipboard
val start: Int?

The start index of the span, if available.

Link copied to clipboard
val type: String?

The type of formatting, if available.