setExpanded

open fun setExpanded(expanded: Boolean)

Sets the state of the expander.

Set to true, if you want the child widget to be revealed, and false if you want the child widget to be hidden.

Parameters

expanded

whether the child widget is revealed