setStateAll
Sets the selection state for all items in the given list of ViewData.
If an AllAppsViewData is present in the list, it handles the selection state for all AppInfoViewData items. Otherwise, it iterates through all Selectable items and sets their selection state.
Parameters
viewDataList
The list of ViewData items.
state
The desired selection state (true for selected, false for deselected).