state

val state: StateFlow<State>

Current drawing state as a reactive flow. Collect this in your UI to receive state updates:

val state by viewModel.state.collectAsState()