mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-04 16:03:13 +00:00
15 lines
248 B
Dart
15 lines
248 B
Dart
|
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);
|
||
|
}
|