sumValue property
double
get
sumValue
We hold this value to determine weight of each PieChartSectionData.value.
Implementation
double get sumValue => sections
.map((data) => data.value)
.reduce((first, second) => first + second);