add message
This commit is contained in:
14
lib/vo/message.dart
Normal file
14
lib/vo/message.dart
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user