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

13 lines
230 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();
DateTime get messages => _time;
void restart() {
_time = DateTime.now();
notifyListeners();
}
}