Fading

data class Fading(val type: FadingType, val duration: Long = 1000, val onComplete: () -> Unit = {}) : DisplayStyle(source)

A fading display style that gradually changes the opacity of the text.

Constructors

Link copied to clipboard
constructor(type: FadingType, duration: Long = 1000, onComplete: () -> Unit = {})

Properties

Link copied to clipboard

Duration in milliseconds for the fade effect.

Link copied to clipboard
val onComplete: () -> Unit

Callback invoked when the fading animation is complete.

Link copied to clipboard

Defines the type of fading effect (e.g., fade in, fade out).

Functions

Link copied to clipboard
open override fun toString(): String