set State
Update this button iconImage drawable to State.icon.
Passing a state with non-empty State.text and State.duration 0 will extend the button with animation, show State.text message and shrink after State.duration.
Parameters
state
State with new icon and text.