import 'package:meta/meta.dart'; /// Single conversation message /// /// @author Pierre HUBERT class ConversationMessage implements Comparable { final int id; final int userID; final int timeInsert; final String message; final String imageURL; const ConversationMessage({ @required this.id, @required this.userID, @required this.timeInsert, @required this.message, @required this.imageURL, }) : assert(id != null), assert(userID != null), assert(timeInsert != null), assert(message != null); @override int compareTo(other) { return id.compareTo(other.id); } }