<How can I know if a empty block is passed in Kotl...
# stackoverflow
u
How can I know if a empty block is passed in Kotlin? I wish uriHandler.openUri(annotation.item) can be fired when I don't pass a block paramater to AnnotatedURLText, and block() can be fired when I pass one to it. But I find uriHandler.openUri(annotation.item) isn't fired when I run Call A, B or C, how can I fire it? Code 1 @Composable fun AnnotatedURLText( ... block: ()->Unit = {} ) { val uriHandler = LocalUriHandler.current ... ClickableText( ... onClick = { offset ->...