DoughnutChartData constructor

const DoughnutChartData({
  1. required String label,
  2. required double value,
  3. required Color color,
})

Creates a new instance of DoughnutChartData.

  • label: The category name of the data point.
  • value: The numeric value for the data point.
  • color: The color representing the data point in the chart.

Implementation

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