ConfigState

class ConfigState<T : ERROR CLASS: Symbol not found for Message<T, *>>(initialValue: T)(source)

A state holder for managing config data within a Composable.

This class encapsulates the common logic for handling editable state that is derived from an initial value. It tracks whether the current value has been modified ("dirty"), and provides simple methods to save the changes or reset to the initial state.

Type Parameters

T

The type of the data being managed, typically a Wire message.

Constructors

Link copied to clipboard
constructor(initialValue: T)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var value: ERROR CLASS: Unresolved name: getValue

Functions

Link copied to clipboard
fun reset()