This method returns the widget visibility state.
Returns true if the widget is hidden, otherwise false is returned.