Ali Albaali
01/15/2021, 3:02 PM@Composable
fun SomeComposable(content : @Composable (() -> Unit)? = null) {}
@Composable
fun OtherComposable(content : @Composable () -> Unit = emptyContent()) {}
Adam Powell
01/15/2021, 3:39 PMemptyContent()
isn't reliable for such use cases.Adam Powell
01/15/2021, 3:40 PMemptyContent()
and non-nullable.Adam Powell
01/15/2021, 3:40 PMAli Albaali
01/15/2021, 4:06 PM