animateIcon

@Composable
fun Modifier.animateIcon(checkedProgress: () -> Float, color: (Float) -> Color = iconColor(), size: (Float) -> Dp = iconSize()): Modifier

Modifier for animating the color and size of an icon within ToggleFloatingActionButton based on a progress value.

Parameters

checkedProgress

callback that provides the progress value for the icon animation

color

the color of the icon, based on the checked progress value from 0-1

size

the size of the icon, based on the checked progress value from 0-1