Add dispose to timerprovider

main
Kai Mannweiler 2023-03-03 17:21:27 +01:00
parent e22d918a92
commit 3ae9699137
1 changed files with 6 additions and 0 deletions

View File

@ -23,4 +23,10 @@ class TimerProvider extends ChangeNotifier {
_timer?.cancel(); _timer?.cancel();
_timer = null; _timer = null;
} }
@override
void dispose() {
_timer?.cancel();
super.dispose();
}
} }