PieChartItem constructor
Implementation
PieChartItem(this.label, num weight, {String? color})
: _weight = weight,
shortLabel = (label.length > maxLabelLength) ? '${label.substring(0, maxLabelLength - 2)}..' : label {
this.color = color ?? ColorGenerator.nextColor();
}