I use Code A as shown below frequently.
Unfortunately, I can't understand the syntax structure for private set completely, so I get the following error when I replace Code A with Code B.
Function invocation 'set(...)' expected
What is the full syntax structure for private set in Kotlin?
Code A
var isRecording by mutableStateOf(false)
private set
Code B
var isRecording by mutableStateOf(false) private set