mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-03-17 20:14:43 +00:00
14 lines
248 B
Dart
14 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);
|
|
}
|