copyWith method
SyMessage
copyWith({
- String? content,
- String? msgId,
- int? msgTimeStamp,
- bool? read,
- SyContact? receiveUserInfo,
- String? requestId,
- bool? send,
- SyContact? sendUserInfo,
- String? sessionId,
- SessionTypeEnum? sessionType,
- MsgStatusEnum? status,
- MsgTypeEnum? type,
- Uri? uri,
- int? messageSeq,
- String? pushContent,
- Map<
String, dynamic> ? pushPayload, - Map<
String, dynamic> ? localExtension, - dynamic intentUrl,
Implementation
SyMessage copyWith(
{String? content,
String? msgId,
int? msgTimeStamp,
bool? read,
SyContact? receiveUserInfo,
String? requestId,
bool? send,
SyContact? sendUserInfo,
String? sessionId,
SessionTypeEnum? sessionType,
MsgStatusEnum? status,
MsgTypeEnum? type,
Uri? uri,
int? messageSeq,
String? pushContent,
Map<String, dynamic>? pushPayload,
Map<String, dynamic>? localExtension,
intentUrl}) =>
SyMessage(
content: content ?? _content,
msgId: msgId ?? _msgId,
msgTimeStamp: msgTimeStamp ?? _msgTimeStamp,
read: read ?? _read,
receiveUserInfo: receiveUserInfo ?? _receiveUserInfo,
requestId: requestId ?? _requestId,
send: send ?? _send,
sendUserInfo: sendUserInfo ?? _sendUserInfo,
sessionId: sessionId ?? _sessionId,
sessionType: sessionType ?? _sessionType,
status: status ?? _status,
type: type ?? _type,
uri: uri ?? _uri,
messageSeq: messageSeq ?? _messageSeq,
pushContent: pushContent ?? _pushContent,
pushPayload: pushPayload ?? _pushPayload,
localExtension: localExtension ?? _localExtension,
intentUrl: intentUrl ?? _intentUrl);