@override void render(Canvas canvas) { super.render(canvas); if (animation?.done() == true) { onFinish?.call(); removeFromParent(); } }