debugPaint method

  1. @protected
void debugPaint(
  1. Context context
)

Implementation

@protected
void debugPaint(Context context) {
  final _margin = resolvedMargin!;

  context.canvas
    ..setFillColor(PdfColors.lightGreen)
    ..moveTo(0, 0)
    ..lineTo(pageFormat.width, 0)
    ..lineTo(pageFormat.width, pageFormat.height)
    ..lineTo(0, pageFormat.height)
    ..moveTo(_margin.left, _margin.bottom)
    ..lineTo(_margin.left, pageFormat.height - _margin.top)
    ..lineTo(
        pageFormat.width - _margin.right, pageFormat.height - _margin.top)
    ..lineTo(pageFormat.width - _margin.right, _margin.bottom)
    ..fillPath();
}