DrawFlowerPainter constructor

DrawFlowerPainter({
  1. required BuildContext context,
  2. required double overallPct,
  3. required List<Color> endColors,
  4. required double initialRotateOffset,
  5. required ValueNotifier<bool> isAnimatingNotifier,
  6. required int numSubjects,
  7. required double petalInnerRadius,
  8. required double petalOuterRadius,
  9. required double rotateAngle,
  10. required List<double> scaleFactors,
  11. required double animationDuration,
  12. required double animationStart,
  13. required bool shouldDraw,
  14. required List<Color> startColors,
  15. required List<double> subjectPercentages,
  16. required List<String> subjects,
  17. required double canvasCx,
  18. required double canvasCy,
  19. required Rect centerCircleRectF,
  20. required bool isShowingCentreCircle,
  21. required bool isShowingLegend,
  22. required Color centreCircleBackgroundColor,
  23. required TextStyle centreCirclePercentageTextStyle,
  24. required TextStyle centreCircleSubtitleTextStyle,
  25. required String centreCircleTitle,
})

Implementation

DrawFlowerPainter({
  required this.context,
  required this.overallPct,
  required this.endColors,
  required this.initialRotateOffset,
  required this.isAnimatingNotifier,
  required this.numSubjects,
  required this.petalInnerRadius,
  required this.petalOuterRadius,
  required this.rotateAngle,
  required this.scaleFactors,
  required this.animationDuration,
  required this.animationStart,
  required this.shouldDraw,
  required this.startColors,
  required this.subjectPercentages,
  required this.subjects,
  required this.canvasCx,
  required this.canvasCy,
  required this.centerCircleRectF,
  required this.isShowingCentreCircle,
  required this.isShowingLegend,
  required this.centreCircleBackgroundColor,
  required this.centreCirclePercentageTextStyle,
  required this.centreCircleSubtitleTextStyle,
  required this.centreCircleTitle,
}) : super(repaint: isAnimatingNotifier);