selfprivacy.org.app/lib/logic/get_it/timer.dart

13 lines
226 B
Dart
Raw Normal View History

2021-01-19 12:05:40 +00:00
import 'package:flutter/material.dart';
class TimerModel extends ChangeNotifier {
DateTime _time = DateTime.now();
2021-03-30 17:38:40 +00:00
DateTime get time => _time;
2021-01-19 12:05:40 +00:00
void restart() {
_time = DateTime.now();
notifyListeners();
}
}