You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the counter reaches the end its still in CustomTimerState.counting. I would like to take action and update certain state values once the clock hits 00:00:00. What would be the best way to do that please?
The text was updated successfully, but these errors were encountered:
Hi! I recently updated this package fixing some of these issues.
I recommend you read the README to see the new way it works after certain important changes.
Now when the timer reaches the end the state changes to CustomTimerState.finished
You can also listen for these state changes like this:
_controller.state.addListener(() {
final state = _controller.state.value;
if(state ==CustomTimerState.finished) // Take an action
});
When the counter reaches the end its still in
CustomTimerState.counting
. I would like to take action and update certain state values once the clock hits 00:00:00. What would be the best way to do that please?The text was updated successfully, but these errors were encountered: