@override void render(Canvas canvas) { super.render(canvas); if (isVisible && !isRemoving) { animation?.render(canvas, paint); } }