applyInvisibleChildrenOfCategoryAppData

Processes a list of ViewData to handle invisible children of CategoryViewData.

This function iterates through the input viewDataList.

  • If a CategoryViewData is encountered, its invisibleChildren are added to a temporary list.

  • If an AppInfoViewData is encountered and it's present in the temporary list of invisible children, its highlightText is set to the current searchText.

This is used to ensure that even if an app is an invisible child of a category (meaning it might not be directly displayed under that category due to filtering or other logic), it still gets highlighted if it matches the search query.

Return

A new list of ViewData with highlighting applied to relevant invisible children.

Parameters

viewDataList

The list of ViewData to process.