title: How to remove (make disappear) Rive animation when it has finished it's animation in flutter
body: <p>I created a flutter Rive <code>oneshotAnimation</code>, and I want it to be disappear from the screen when the animation is over. Currently animation stays on the screen when animation is over, and I cant interact with the other widgets on the screen because of that. Luckily there is <code>onStop</code> function in <code>oneshotAnimation</code> controller. Could someone please tell me how to implement this part?</p>
  <pre><code>late RiveAnimationController _partAnimation;
  
    @override
    void initState() {
      super.initState();
      _partAnimation = OneShotAnimation(
        'Animation',
        onStop: () {},  // I want to remove the rive animation from the screen when it is done
      );
    } 
  </code></pre>
  <p>.... Here is the animation widget</p>
  <pre><code>       SizedBox(height: 400,
                  width: MediaQuery.of(context).size.width,
                  child: RiveAnimation.asset(
                    'assets/rive/party.riv',
                    antialiasing: false,
                    fit: BoxFit.contain,
                    controllers: [_partAnimation],
                  ),
                ),
  </code></pre>