filterPanels

inline fun <P : AnyPanel> Iterable<AnyPanel>.filterPanels(): PanelList<P>

Returns a list of Panels that is filtered to only contain Panels of type P.


inline fun <P : AnyPanel> LiveData<out Iterable<AnyPanel>>.filterPanels(): LiveData<PanelList<P>>

Returns a LiveData, mapped from this, containing a list of Panels that is filtered to only contain Panels of type P.

Note: This is a LiveData transformation, which does not have an up-to-date value unless observed.