I have a composable function:
@Composable
fun GapText(
modifier: Modifier,
text: String,
) {
Row(modifier = modifier) {
Text(text = text)
...
}
}
Now I want to create a modifier that only GapText can use:
fun Modifier.customTag(tag: String) =
this then CustomTag(tag)
But with this function that I wrote every composable function can use it. What should I do?