Daniele B
07/11/2023, 7:15 AMfun MyComposable(myEventFunctionWithOneArgument: (String) -> Unit) {
...
}
--------
MyComposable( { model.myEventFunctionWithOneArgument(it) } )
but how to do specify a function that takes 2 arguments?
fun MyComposable(myEventFunctionWithTwoArguments: (String, String) -> Unit) {
...
}
--------
alvr
07/11/2023, 7:22 AMMyComposable( { param1, param2 ->
model.myEventFunctionWithTwoArguments(param1, param2)
} )
Daniele B
07/11/2023, 7:25 AM