Class

ProvidableStyleProperty

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

Source set: Common
public open class ProvidableStyleProperty<T>(name: String, local: Boolean, defaultValue: () -> T) :
    StyleProperty<T>(name, local, defaultValue)

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

Parameters

T type of value held by the property
name optional debug name for the property
local whether this property inherits down the layout tree
defaultValue provider for the fallback value when not set
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: