Files
fcs/lib/vo/message.dart
2020-09-20 05:34:49 +06:30

19 lines
372 B
Dart

class Message {
String id;
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;
}
}