debugPaint method

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

Implementation

@override
void debugPaint(Context context) {
  switch (direction) {
    case Axis.horizontal:
      context.canvas
        ..setFillColor(PdfColors.grey300)
        ..drawBox(box!)
        ..fillPath();
      break;
    case Axis.vertical:
      context.canvas
        ..setFillColor(PdfColors.grey300)
        ..drawRect(box!.x, box!.y + crossAxisPosition, box!.width,
            box!.height - crossAxisPosition)
        ..fillPath();
      break;
  }
}