fun toggle(notifyListener: Boolean = true): Unit
Changes the selected state of the action to the inverse of its current state.
notifyListener - If true (default) the listener will be notified about the state change.
notifyListener