Hey guys, How to replace multiple lambda () -> Unit in a composable in Jetpack compose android
@Composable fun ChatMessageDisplay (
authorName: String,
author ImageUrl: String,
dateSent: String,
messages: List<Content>,
likeCounts: List<Int>,
onLikeClick: (Int) -> Unit,
onMessageClick: (Int) -> Unit,
onMessageLongClick: (Int) -> Unit,
onUserPhotoClick: () -> Unit,
onVisibleOnScreen: (Int) -> Unit,
onShareClick: (Int) -> Unit,
onEditClick: (Int) -> Unit,
)
I have above composable Which requires multiple lambda () -> Unit
how can we replace them with a single lambda () -> Unit or any simple method to reduce multiple lambda () -> Units