How can I get notified when a timeline goes to another?

Hey guys. I work at a startup, we need an animation and as we don't have money to pay someone to do it, I decided to learn how to use Rive and do the animation myself. I have created two timelines and I need (in my flutter app) to be notified when timeline 1 goes to timeline 2. How can I do this? If it's a silly question forgive me, I'm just starting with animations