renderDebugMode method

void renderDebugMode(
  1. Canvas canvas
)
override

Implementation

void renderDebugMode(Canvas canvas) {
  if (isVisible) {
    final rect = toRect();
    canvas.drawRect(rect, debugPaint);

    final dx = rect.right;
    final dy = rect.bottom;
    debugTextPaint.render(
      canvas,
      'x:${dx.toStringAsFixed(2)} y:${dy.toStringAsFixed(2)}',
      Vector2(dx - 50, dy),
    );
  }
}