Gradient

@Serializable
sealed interface Gradient : ComposeBrush(source)

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
data class Linear(val start: ComposeOffset, val end: ComposeOffset, val tileMode: GradientTileMode?, val colors: List<ComposeColor>, val stops: List<Float>? = null) : ComposeBrush.Gradient
Link copied to clipboard
@Serializable
data class Radial(val radius: Float?, val center: ComposeOffset?, val tileMode: GradientTileMode?, val colors: List<ComposeColor>, val stops: List<Float>? = null) : ComposeBrush.Gradient
Link copied to clipboard
@Serializable
data class Sweep(val center: ComposeOffset?, val colors: List<ComposeColor>, val stops: List<Float>? = null) : ComposeBrush.Gradient

Properties

Link copied to clipboard
open override val approximateByteSize: Int

Represents the approximate bytecode size accounted for by the current type or instruction within a method.

Link copied to clipboard
abstract val colors: List<ComposeColor>
Link copied to clipboard
open override val imports: Set<String>
Link copied to clipboard
open override val name: String
Link copied to clipboard
abstract val stops: List<Float>?
Link copied to clipboard
abstract val value: String

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun toCompose(): String?

Provides a way to get the canonical string representation of the ComposeType implementation.