Files
fcs/lib/vo/message.dart

15 lines
349 B
Dart
Raw Normal View History

2020-06-02 14:56:38 +06:30
class Message {
String receiverName;
String message;
DateTime date;
String senderName;
bool isMe;
Message({this.receiverName, this.message, this.date, this.senderName,this.isMe});
bool fromToday() {
var now = DateTime.now();
return date.day == now.day &&
date.month == now.month &&
date.year == now.year;
}
}