KotlinLeaner
02/26/2024, 10:58 AM@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 () -> Unitscurioustechizen
02/26/2024, 11:02 AMKotlinLeaner
02/26/2024, 3:20 PMBen Trengrove [G]
02/27/2024, 2:09 AMBen Trengrove [G]
02/27/2024, 2:12 AMBen Trengrove [G]
02/27/2024, 2:13 AMKotlinLeaner
02/27/2024, 8:57 AM