LegendItem constructor
const
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 legend item.
Implementation
const LegendItem({
super.key,
required this.label,
required this.color,
this.symbolShape = LegendSymbolShape.circle,
this.symbolSize = 12,
this.symbolLabelSpacing = 4,
this.labelStyle,
this.onTap,
this.isSelected = true,
this.inactiveOpacity = 0.3,
});