PieChartData constructor
const
PieChartData({
- required double value,
- required String label,
- Color? color,
- 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,
});