public interface StyleLayerScope
Introduces the CustomStyleScope styleLayer method that allows styles to create a style property layer.
This is a separate interface to allow a CustomStyle type to decide if styleLayer is available directly in a style.
Functions
styleLayer
public fun styleLayer(block: () -> Unit)
Raise the layer of properties that are set in block. Properties set in a layer will take precedence over properties set in the layers below it. A layer is implied by StyleStateScope.state, or helpers that use it, such as StyleStateScope.pressed and StyleStateScope.focused.
The last property set with the greatest style layer is the resolved value of a style property.