Nikola Milovic
09/30/2021, 10:10 AMdata class State(
val topics: List<String> = listOf(),
val messages : MutableMap<String, ArrayList<MessageModel>> = mutableMapOf(),
)
Currently doing this for the topics
copy(topics = topics.plus(topic))
And what to do about the map
So if I wanted to add a new topic or add a new entry to the message map, how would I approach it?