debugPaint method

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

Implementation

@override
void debugPaint(Context context) {
  final resolvedPadding = padding.resolve(Directionality.of(context));
  context.canvas
    ..setFillColor(PdfColors.lime)
    ..moveTo(box!.x, box!.y)
    ..lineTo(box!.right, box!.y)
    ..lineTo(box!.right, box!.top)
    ..lineTo(box!.x, box!.top)
    ..moveTo(box!.x + resolvedPadding.left, box!.y + resolvedPadding.bottom)
    ..lineTo(box!.x + resolvedPadding.left, box!.top - resolvedPadding.top)
    ..lineTo(
        box!.right - resolvedPadding.right, box!.top - resolvedPadding.top)
    ..lineTo(
        box!.right - resolvedPadding.right, box!.y + resolvedPadding.bottom)
    ..fillPath();
}