Remove Print calls
parent
4279e7961c
commit
f7bbac7adc
|
@ -8,7 +8,6 @@ class TimerProvider extends ChangeNotifier {
|
|||
int get elapsedSeconds => _timer != null ? _timer!.tick : 0;
|
||||
|
||||
void startTimer(Duration duration) {
|
||||
print('started');
|
||||
started = true;
|
||||
_timer = Timer.periodic(const Duration(seconds: 1), ((timer) {
|
||||
if (timer.tick >= duration.inSeconds) {
|
||||
|
@ -27,7 +26,6 @@ class TimerProvider extends ChangeNotifier {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
print('disposed');
|
||||
started = false;
|
||||
_timer?.cancel();
|
||||
_timer = null;
|
||||
|
|
Loading…
Reference in New Issue