calculateSectionsAngle method

  1. @visibleForTesting
List<double> calculateSectionsAngle(
  1. List<PieChartSectionData> sections,
  2. double sumValue
)

Implementation

@visibleForTesting
List<double> calculateSectionsAngle(
  List<PieChartSectionData> sections,
  double sumValue,
) {
  return sections.map((section) {
    return 360 * (section.value / sumValue);
  }).toList();
}