ChatMessage constructor

ChatMessage({
  1. required String id,
  2. required MessageType type,
  3. String? fromId,
  4. String? fromName,
  5. String? toId,
  6. String? toName,
  7. required String text,
  8. required String roomId,
  9. MessageOriginality originality = MessageOriginality.original,
  10. String? attachment,
  11. String? thumbnail,
  12. String? originalId,
  13. String? originalMessage,
  14. int? sendTime,
  15. int? size,
  16. String? mime,
  17. double? longitude,
  18. double? latitude,
})

Implementation

ChatMessage(
    {required String id,
    required MessageType type,
    String? fromId,
    String? fromName,
    this.toId,
    this.toName,
    required this.text,
    required this.roomId,
    this.originality = MessageOriginality.original,
    this.attachment,
    this.thumbnail,
    this.originalId,
    this.originalMessage,
    int? sendTime,
    this.size,
    this.mime,
    this.longitude,
    this.latitude})
    : super(
          id: id,
          type: type,
          fromId: fromId,
          fromName: fromName,
          sendTime: sendTime);