FlashButton

fun FlashButton(onFlashChange: () -> Unit, isFlashOn: Boolean, modifier: Modifier = Modifier)

Composable function to display a button for toggling the camera flash.

Parameters

onFlashChange

Callback function invoked when the flash state is toggled.

isFlashOn

Boolean indicating whether the flash is currently turned on.

modifier

Modifier for customizing the appearance and layout of the button.