renderDebugMode method

void renderDebugMode(
  1. Canvas canvas
)
override

Implementation

void renderDebugMode(Canvas canvas) {
  if (isVisible) {
    canvas.drawRect(position.rect, debugPaint);
    final rect = position.rect;
    final dx = rect.right;
    final dy = rect.bottom;
    debugTextPaint.render(
      canvas,
      'x:${dx.toStringAsFixed(2)} y:${dy.toStringAsFixed(2)}',
      Vector2(dx - 50, dy),
    );
  }
  super.renderDebugMode(canvas);
}