drawSection method

  1. @visibleForTesting
void drawSection(
  1. PieChartSectionData section,
  2. Path sectionPath,
  3. CanvasWrapper canvasWrapper
)

Implementation

@visibleForTesting
void drawSection(
  PieChartSectionData section,
  Path sectionPath,
  CanvasWrapper canvasWrapper,
) {
  _sectionPaint
    ..color = section.color
    ..style = PaintingStyle.fill;
  canvasWrapper.drawPath(sectionPath, _sectionPaint);
}