Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change duration from int to Duration #65

Open
guyluz11 opened this issue Apr 16, 2024 · 1 comment
Open

Change duration from int to Duration #65

guyluz11 opened this issue Apr 16, 2024 · 1 comment

Comments

@guyluz11
Copy link

guyluz11 commented Apr 16, 2024

CircularCountDownTimer(duration: 5)
to
CircularCountDownTimer(duration: Duration(seconds: 5))

We can improve the code by changing the duration parameter from int in seconds to Duration.

@slermo-spiks
Copy link

Hello, You can use something like that I think
const Duration(minutes: 15).inSeconds

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

No branches or pull requests

2 participants