add message

This commit is contained in:
2020-06-02 14:56:38 +06:30
parent abb34ce064
commit 5bc34b3408
5 changed files with 296 additions and 47 deletions

14
lib/vo/message.dart Normal file
View File

@@ -0,0 +1,14 @@
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;
}
}