LegendItem constructor

const LegendItem({
  1. Key? key,
  2. required String label,
  3. required Color color,
  4. LegendSymbolShape symbolShape = LegendSymbolShape.circle,
  5. double symbolSize = 12,
  6. double symbolLabelSpacing = 4,
  7. TextStyle? labelStyle,
  8. VoidCallback? onTap,
  9. bool isSelected = true,
  10. 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,
});