toChartIndicator method
Implementation
List<Widget> toChartIndicator() {
List<Widget> result = [];
for (int i = 0; i < length; i++) {
result.add(ChartIndicator(
color: this[i].color ?? ChartPieItem.colors[i],
text: this[i].title,
isSquare: false,
));
if (i < length - 1) {
result.add(SizedBox(
height: 4,
));
}
}
return result;
}