getWidth

fun getWidth(context: MeasuringContext, iconSize: Dp, iconLabelSpacing: Dp, maxWidth: Float): Float

Measures the width of this LegendItem.

Parameters

iconSize

the LegendItem.icon size.

iconLabelSpacing
maxWidth

the maximum LegendItem width.