copyWith method
Message
copyWith(
{ - String? msgId,
- String? sequence,
- int? msgType,
- int? fromId,
- String? nickname,
- String? avatar,
- int? isRevoked,
- String? sendTime,
- Map<String, dynamic>? quote,
- int? talkMode,
- int? toFromId,
- int? status,
})
Implementation
Message copyWith({
String? msgId,
String? sequence,
int? msgType,
int? fromId,
String? nickname,
String? avatar,
int? isRevoked,
String? sendTime,
Map<String, dynamic>? extra,
Map<String, dynamic>? quote,
int? talkMode,
int? toFromId,
int? status,
}) {
return Message(
msgId: msgId ?? this.msgId,
sequence: sequence ?? this.sequence,
msgType: msgType ?? this.msgType,
fromId: fromId ?? this.fromId,
nickname: nickname ?? this.nickname,
avatar: avatar ?? this.avatar,
isRevoked: isRevoked ?? this.isRevoked,
sendTime: sendTime ?? this.sendTime,
extra: extra ?? this.extra,
quote: quote ?? this.quote,
talkMode: talkMode ?? this.talkMode,
toFromId: toFromId ?? this.toFromId,
status: status ?? this.status,
);
}