https://kotlinlang.org logo
b

Benoit Quenaudon

10/03/2022, 10:49 AM
I cannot think of something else right now but you could pass a lambda as you said
fun something(searchSetter: (String) -> Unit)
and call that. I don’t really know how to set a mutableState field manually but if that’s easy, you woudn’t use the delegate on search and would be able to pass
MutableState<String>
to the method.
2 Views