TextData

data class TextData(val text: String, val reading: String? = null)

A data class representing text with optional furigana (phonetic readings).

This is used to pass text to components that support displaying both the original text (such as kanji) and its furigana (phonetic readings).

Constructors

Link copied to clipboard
constructor(text: String, reading: String? = null)

Properties

Link copied to clipboard
val reading: String? = null

The optional phonetic reading of the text. If null, no furigana will be shown.

Link copied to clipboard

The main text to display (e.g., in kanji).