selfprivacy.org.app/lib/logic/models/message.dart

15 lines
248 B
Dart
Raw Normal View History

2021-01-14 21:48:05 +00:00
import 'package:intl/intl.dart';
final formater = new DateFormat('hh:mm');
class Message {
Message({
this.text,
}) : time = DateTime.now();
final String text;
final DateTime time;
String get timeString => formater.format(time);
}