getStateStyle

open fun getStateStyle(isEnabled: Boolean, isPressed: Boolean): StateStyle

Gets the StateStyle of the button depending on the state

Return

the StateStyle 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