get Label Width
fun getLabelWidth(context: MeasuringContext, iconSize: Dp, iconLabelSpacing: Dp, maxWidth: Float): Float
Measures the width of the label.
Parameters
icon Size
the LegendItem.icon size.
icon Label Spacing
the spacing between LegendItem.icon and LegendItem.labelComponent.
max Width
the maximum LegendItem width.