copyWith method

SyMessage copyWith({
  1. String? content,
  2. String? msgId,
  3. int? msgTimeStamp,
  4. bool? read,
  5. SyContact? receiveUserInfo,
  6. String? requestId,
  7. bool? send,
  8. SyContact? sendUserInfo,
  9. String? sessionId,
  10. SessionTypeEnum? sessionType,
  11. MsgStatusEnum? status,
  12. MsgTypeEnum? type,
  13. Uri? uri,
  14. int? messageSeq,
  15. String? pushContent,
  16. Map<String, dynamic>? pushPayload,
  17. Map<String, dynamic>? localExtension,
  18. 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);