getLabelHeight
fun getLabelHeight(context: MeasuringContext, iconSize: Dp, iconLabelSpacing: Dp, maxWidth: Float): Float
Measures the height of the label.
Parameters
iconSize
the LegendItem.icon size.
iconLabelSpacing
the spacing between LegendItem.icon and LegendItem.labelComponent.
maxWidth
the maximum LegendItem width.