fadeOut

fun Modifier.fadeOut(initialColor: Color = Color.Transparent, fadeToColor: Color = Color.White, verticalFade: Boolean = true): Modifier

Applies a linear gradient fade overlay across the content.

Caches the gradient brush in drawWithCache to minimize draw allocations.