ChatMessage constructor
ChatMessage({
- required String id,
- required MessageType type,
- String? fromId,
- String? fromName,
- String? toId,
- String? toName,
- required String text,
- required String roomId,
- MessageOriginality originality = MessageOriginality.original,
- String? attachment,
- String? thumbnail,
- String? originalId,
- String? originalMessage,
- int? sendTime,
- int? size,
- String? mime,
- double? longitude,
- 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);