Toggle
methodsToggles the widget. Both expand and animation parameters are optional.
Parameters:expandBoolean
animationBoolean
If true, the widget will be expanded. If false, the widget will be collapsed.
If false, the widget will be toggled without animations.