legendItem function
Widget
legendItem({
- Key? key,
- required String label,
- required Color color,
- LegendSymbolShape symbolShape = LegendSymbolShape.circle,
- double symbolSize = 12,
- double symbolLabelSpacing = 4,
- TextStyle? labelStyle,
- VoidCallback? onTap,
- bool isSelected = true,
- double inactiveOpacity = 0.3,
Creates a LegendItem widget.
Implementation
Widget legendItem({
Key? key,
required String label,
required Color color,
LegendSymbolShape symbolShape = LegendSymbolShape.circle,
double symbolSize = 12,
double symbolLabelSpacing = 4,
TextStyle? labelStyle,
VoidCallback? onTap,
bool isSelected = true,
double inactiveOpacity = 0.3,
}) {
return LegendItem(
key: key,
label: label,
color: color,
symbolShape: symbolShape,
symbolSize: symbolSize,
symbolLabelSpacing: symbolLabelSpacing,
labelStyle: labelStyle,
onTap: onTap,
isSelected: isSelected,
inactiveOpacity: inactiveOpacity,
);
}