copyWith method
ChatMessage
copyWith({
- String? id,
- MessageType? type,
- String? fromId,
- String? fromName,
- String? toId,
- String? toName,
- String? text,
- String? roomId,
- MessageOriginality? originality,
- String? attachment,
- String? thumbnail,
- String? originalId,
- String? originalMessage,
- int? sendTime,
- int? size,
- String? mime,
- double? longitude,
- double? latitude,
Implementation
ChatMessage copyWith(
{String? id,
MessageType? type,
String? fromId,
String? fromName,
String? toId,
String? toName,
String? text,
String? roomId,
MessageOriginality? originality,
String? attachment,
String? thumbnail,
String? originalId,
String? originalMessage,
int? sendTime,
int? size,
String? mime,
double? longitude,
double? latitude}) {
return ChatMessage(
id: id ?? this.id,
type: type ?? this.type,
fromId: fromId ?? this.fromId,
fromName: fromName ?? this.fromName,
toId: toId ?? this.toId,
toName: toName ?? this.toName,
text: text ?? this.text,
roomId: roomId ?? this.roomId,
originality: originality ?? this.originality,
attachment: attachment ?? this.attachment,
thumbnail: thumbnail ?? this.thumbnail,
originalId: originalId ?? this.originalId,
originalMessage: originalMessage ?? this.originalMessage,
sendTime: sendTime ?? this.sendTime,
size: size ?? this.size,
mime: mime ?? this.mime,
longitude: longitude ?? this.longitude,
latitude: latitude ?? this.latitude);
}