Add dispose to timerprovider
parent
e22d918a92
commit
3ae9699137
|
@ -23,4 +23,10 @@ class TimerProvider extends ChangeNotifier {
|
|||
_timer?.cancel();
|
||||
_timer = null;
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_timer?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue