selfprivacy.org.app/lib/logic/get_it/timer.dart
2021-03-30 19:38:40 +02:00

13 lines
226 B
Dart

import 'package:flutter/material.dart';
class TimerModel extends ChangeNotifier {
DateTime _time = DateTime.now();
DateTime get time => _time;
void restart() {
_time = DateTime.now();
notifyListeners();
}
}