StateField

Fields can store additional information in an editor state, and keep it in sync with the rest of the state.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun <T> StateField<T>.getValue(thisRef: EditorState, property: KProperty<*>): T

Property delegate for reading a StateField value from EditorState.

Link copied to clipboard
fun init(create: (EditorState) -> Value): Extension

Returns an extension that enables this field and overrides the way it is initialized.

Link copied to clipboard
operator fun Extension.plus(other: Extension): ExtensionList

Combine two extensions into an ExtensionList.