LegendLabel constructor

const LegendLabel({
  1. required String label,
  2. required Color color,
})

Creates a new instance of LegendLabel.

  • label: The name or category of the legend item.
  • color: The color representing this legend item in the chart.

Implementation

const LegendLabel({
  required this.label,
  required this.color,
});