FastAnimatedPieGraphPainter constructor

FastAnimatedPieGraphPainter({
  1. required Animation<double> animation,
  2. Color backgroundColor = Colors.white,
  3. Color borderColor = Colors.white,
  4. double backgroundOpacity = 1.0,
  5. double borderOpacity = 1.0,
  6. double borderWidth = 1.0,
})

Implementation

FastAnimatedPieGraphPainter({
  required this.animation,
  this.backgroundColor = Colors.white,
  this.borderColor = Colors.white,
  this.backgroundOpacity = 1.0,
  this.borderOpacity = 1.0,
  this.borderWidth = 1.0,
}) : super(repaint: animation) {
  _backgroundColor = backgroundColor.withOpacity(backgroundOpacity);
  _borderColor = borderColor.withOpacity(borderOpacity);
  _sweepAngle = pi / 2;
}