renderDebugMode method

  1. @override
void renderDebugMode(
  1. Canvas canvas
)
override

Implementation

@override
void renderDebugMode(Canvas canvas) {
  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),
  );
}