juliocbcotta
02/06/2025, 2:12 PM@Composable
fun Label(val label: String?) {
if(label == null) return
...
}
or even
@Composable
fun Label(val label: String?) {
if(label != null){
...
}
}
to me it looks like a bad practice and the nullability check should be at the calling place as receiving that null value will in fact not draw anything... WDYT folks?rkechols
02/06/2025, 2:37 PMjuliocbcotta
02/06/2025, 2:45 PMrkechols
02/06/2025, 2:52 PMBlundell
02/06/2025, 3:16 PMZach Klippenstein (he/him) [MOD]
02/06/2025, 4:43 PM