invoke

@Composable
operator fun Modifier.invoke(block: @Composable Modifier.() -> Modifier): Modifier

Operator function to apply a block of code to the current Modifier and return a new Modifier.

Return

A Modifier that is the result of applying the block to the current Modifier.

Parameters

block

A lambda function with a receiver of type Modifier that returns a Modifier.