getWidth
fun getWidth(context: MeasuringContext, iconSizeDp: Float, iconLabelSpacingDp: Float, maxWidth: Float): Float
Measures the width of this LegendItem.
Parameters
iconSizeDp
the LegendItem.icon size (in dp).
iconLabelSpacingDp
the spacing between LegendItem.icon and LegendItem.labelComponent (in dp).
maxWidth
the maximum LegendItem width.