Skip to content

Conversation

@acyment
Copy link

@acyment acyment commented May 11, 2021

Hi! I don't fully understand why you have both Countdown and CountdownTimer. I used the former because I needed to pause the timer. I added a method to also restart it. Thanks!

@wuweijian1997
Copy link
Owner

Hello, thank you very much for submitting your PR.
I think this will also restart the timer,Is there any difference between this and your reset?

   countdownController.value = Duration(seconds: 5).inMilliseconds;
   countdownController.start();

@acyment
Copy link
Author

acyment commented Jun 5, 2021

Sorry for not answering before. Both alternatives work, but I just found this interface to be a bit more encapsulated, but it's very subjective.

@JadeKim042386 JadeKim042386 mentioned this pull request May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants