debugPaint method
void
debugPaint(
- Context context
)
override
Implementation
@override
void debugPaint(Context context) {
super.debugPaint(context);
final grid = Chart.of(context).grid as PieGrid;
final bisect = (angleStart + angleEnd) / 2;
final cx = sin(bisect) * (offset + grid.radius + legendOffset);
final cy = cos(bisect) * (offset + grid.radius + legendOffset);
if (_legendWidget != null) {
context.canvas
..saveContext()
..moveTo(0, 0)
..lineTo(cx, cy)
..setLineWidth(0.5)
..setLineDashPattern([3, 1])
..setStrokeColor(PdfColors.blue)
..strokePath()
..restoreContext();
}
}