getStateStyle

fun getStateStyle(isEnabled: Boolean, isPressed: Boolean): ButtonStateStyle

Gets the ButtonStateStyle of the button depending on the state

Return

the ButtonStateStyle to apply to the text of the button in the current state

Parameters

isEnabled

if true the button is enabled

isPressed

if true the button is pressed