dimsuz
11/03/2021, 4:01 PM// before
val itemId = 3
onClick = { someListener(itemId) }
// after
onClick = { someListener() }
// OR
onClick = { itemId -> someListener(itemId) }
in the latter cases this can be simplified to (no extra wrapping lambda):
onClick = someListener
I'm about to try to write a custom check for this, but I thought maybe there already is one?chao
11/03/2021, 4:03 PMdimsuz
11/03/2021, 4:04 PMephemient
11/03/2021, 4:33 PMchao
11/03/2021, 4:44 PM