PieChartData constructor

const PieChartData({
  1. required double value,
  2. required String label,
  3. Color? color,
  4. VoidCallback? onTap,
})

Constructor for PieChartData.

Requires value and label to be provided. color is optional and can be null. onTap is optional and can be null.

Implementation

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