ProvidableStyleProperty


Defines a style property whose value can be provided within a style scope.

Parameters
<T : Any?>

type of value held by the property

Summary

Public constructors

<T : Any?> ProvidableStyleProperty(
    name: String,
    local: Boolean,
    defaultValue: () -> T
)
Cmn

Inherited functions

From androidx.compose.foundation.style.StyleProperty
open T
lerp(a: T, b: T, t: Float)

Interpolates between value a and b at fraction t.

Cmn
open String
Cmn

Inherited properties

From androidx.compose.foundation.style.StyleProperty
() -> T

provider for the fallback value when not set

Cmn
Boolean

whether this property inherits down the layout tree

Cmn
String

debug/tooling name for the property

Cmn

Public constructors

ProvidableStyleProperty

<T : Any?> ProvidableStyleProperty(
    name: String,
    local: Boolean,
    defaultValue: () -> T
)
Parameters
<T : Any?>

type of value held by the property

name: String

optional debug name for the property

local: Boolean

whether this property inherits down the layout tree

defaultValue: () -> T

provider for the fallback value when not set