StoryState

data class StoryState(val stories: Map<Int, StoryStep>, val lastEdit: LastEdit = LastEdit.Nothing, val focus: Int? = null, val selection: Selection = Selection.start())

The state of document of the TextEditor of Writeopia. This class has all the stories in their updated state and which one has the current focus.

Constructors

Link copied to clipboard
constructor(stories: Map<Int, StoryStep>, lastEdit: LastEdit = LastEdit.Nothing, focus: Int? = null, selection: Selection = Selection.start())

Properties

Link copied to clipboard
val focus: Int? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard