Open guyluz11 opened 7 months ago
CircularCountDownTimer(duration: 5) to CircularCountDownTimer(duration: Duration(seconds: 5))
CircularCountDownTimer(duration: 5)
CircularCountDownTimer(duration: Duration(seconds: 5))
We can improve the code by changing the duration parameter from int in seconds to Duration.
Hello, You can use something like that I think const Duration(minutes: 15).inSeconds
const Duration(minutes: 15).inSeconds
CircularCountDownTimer(duration: 5)
toCircularCountDownTimer(duration: Duration(seconds: 5))
We can improve the code by changing the duration parameter from int in seconds to Duration.