getSubSections

open fun getSubSections(children: Children): List<SubSection>

Get sub sections for the given Children. This is very similar to getChildren except it gets the Children intead of calling createChildren. This is useful for testing the output of com.facebook.litho.sections.common.RenderSectionEvent handlers.

Return

A list of the sections inside the given Children object.

Parameters

children

The Children object to extract sections from.