circular_countdown_timer icon indicating copy to clipboard operation
circular_countdown_timer copied to clipboard

Change duration from int to Duration

Open guyluz11 opened this issue 1 year ago • 1 comments

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.

guyluz11 avatar Apr 16 '24 11:04 guyluz11

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

slermo-spiks avatar Oct 04 '24 08:10 slermo-spiks