@override void render(Canvas canvas) { super.render(canvas); if (this.isVisible) { sprite?.renderWithOpacity( canvas, position, size, opacity: opacity, ); } }