how to add modifier passed as parameter to the end of Modifier?

Viewed 672

I have a function:

@Composable
fun sendNewSmsText(passedModifier: Modifier){
Text(text = stringResource(R.string.when_sms_not_received),
    style = Typography.body2.copy(),
    modifier = Modifier.padding(4.dp)
 )
}

how to add a passedModifier to the text's end? like:

@Composable
 fun sendNewSmsText(modifier: Modifier){
  Text(text = stringResource(R.string.when_sms_not_received),
    style = Typography.body2.copy(),
    modifier = Modifier.padding(4.dp).passedModifier
  )
 }
1 Answers
Related