Android 12 Developer Preview is here! Try it out, and give us your feedback!

Shadow

@Immutable class Shadow
kotlin.Any
   ↳ androidx.compose.ui.graphics.Shadow

A single shadow.

Summary

Public constructors
<init>(color: Color = Color(0xFF000000), offset: Offset = Offset.Zero, blurRadius: Float = 0.0f)

A single shadow.

Public methods
Shadow
copy(color: Color = this.color, offset: Offset = this.offset, blurRadius: Float = this.blurRadius)

Boolean
equals(other: Any?)

Int

String

Properties
Float

Color

Offset

Companion properties
Shadow

Constant for no shadow.

Public constructors

<init>

Shadow(
    color: Color = Color(0xFF000000),
    offset: Offset = Offset.Zero,
    blurRadius: Float = 0.0f)

A single shadow.

Public methods

copy

fun copy(
    color: Color = this.color,
    offset: Offset = this.offset,
    blurRadius: Float = this.blurRadius
): Shadow

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

Properties

blurRadius

@Stable val blurRadius: Float

color

@Stable val color: Color

offset

@Stable val offset: Offset

Companion properties

None

@Stable val None: Shadow

Constant for no shadow.