is Focused
fun Modifier.isFocused(hoverable: Boolean = true, focusable: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, builder: Modifier.() -> Modifier): Modifier
Extension function to apply changes to a Modifier if the Composable is focused.
Return
the Modifier which contains the changes of builder if it is focused.
Parameters
hoverable
whether hovering is enabled and an indicator for focus.
focusable
whether focusing is enabled
interaction Source
the used MutableInteractionSource to indicate if a Composable is focused.
builder
apply changes to the given Modifier.