getWidth
fun getWidth(context: MeasuringContext, maxWidth: Float, iconPaddingDp: Float, iconSizeDp: Float): Float
Measures the width of this LegendItem.
Parameters
maxWidth
the maximum width.
iconPaddingDp
the padding between the icon and the label.
iconSizeDp
the size of the icon.