onPaint method

  1. @override
void onPaint(
  1. PaintingContext context,
  2. Offset offset
)
override

Implementation

@override
void onPaint(PaintingContext context, Offset offset) {
  context.canvas.save();
  final Rect clip =
      clipRect(paintBounds, animationFactor, isTransposed: true);
  context.canvas.clipRect(clip);
  paintSegments(context, offset);
  context.canvas.restore();
  paintDataLabels(context, offset);
}