ToolingState

class ToolingState<T : Any?> : State


Tooling can override mutableStateOf in Composable with ToolingState. Composable should declare a state, which could be private:

val toolingOverride = remember { mutableStateOf?>(null) }

Tooling overrides toolingOverride with

toolingOverride.value = ToolingState(default)

Summary

Public constructors

<T : Any?> ToolingState(default: T)

Public properties

open T

Public constructors

ToolingState

<T : Any?> ToolingState(default: T)
Parameters
default: T

default value

Public properties

value

Added in 1.4.0
open var value: T