ursus
10/16/2024, 11:23 AMScreenBody(
viewModel::enableClick,
viewModel::disableClick
)
and then alt+enter create it
I get this cryptic nonsense
private fun ScreenBody(kFunction0: KFunction0<Unit>, kFunction01: KFunction0<Unit>) {
any way around it? can't it just fill in normal lambdas, like this?
private fun ScreenBody(onEnableClick: () -> Unit, onDisableClick: () -> Unit) {
so annoyingsindrenm
10/16/2024, 11:50 AMonEnableClick
and onDisableClick
(unless you use named parameters when calling ScreenBody()
), but I agree that it would be nice to use normal lambda syntax instead of inserting KFunctionX
types.ursus
10/16/2024, 11:50 AMchristophsturm
10/16/2024, 12:10 PMCLOVIS
10/17/2024, 7:41 AM