renderDebugMode method

void renderDebugMode(
  1. Canvas canvas
)

Implementation

void renderDebugMode(Canvas canvas) {
  canvas.drawRect(Rect.fromLTWH(0.0, 0.0, width, height), _debugPaint);
  debugTextConfig.render(
      canvas,
      "x: ${x.toStringAsFixed(2)} y:${y.toStringAsFixed(2)}",
      Position(-50, -15));

  final Rect rect = toRect();
  final dx = rect.right;
  final dy = rect.bottom;
  debugTextConfig.render(
      canvas,
      "x:${dx.toStringAsFixed(2)} y:${dy.toStringAsFixed(2)}",
      Position(width - 50, height));
}