Reset CountController wrapped in a component from outside

Widgets & Design

Hello,

I have a CountController wrapped inside a controller, as it is used in a list. The issue is that I need this CountController to go back to 0 when I click in a certain button outside the component, and I don't know how to do it. If needed I can give more details about my application but I think the question is quite clear.

Many thanks!

What have you tried so far?

Setting the initial value to an app state and putting it to 0 when clicking the button.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies