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