mapToActiveModalPanelStackData

fun LiveData<out AnyPanelCollection>.mapToActiveModalPanelStackData(): LiveData<ModalPanelStackData>

Maps a collection containing all AnyPanels of all Frontends to an active ModalPanelStackData.

The ModalPanelStackData will contain all ModalPanels from a single Frontend. Which Frontend's ModalPanels to include is based on which Frontend is considered to be the 'active' one for ModalPanels. This is determined by the most recently opened ModalPanel.

If no ModalPanel is present in the collection, an empty ModalPanelStackData will be returned.