withSequence method
Create a copy with updated sequence number (set by MDA on storage)
Implementation
SFMessage withSequence(int sequence) {
return SFMessage(
messageId: messageId,
recipientPeerId: recipientPeerId,
senderPeerId: senderPeerId,
payload: payload,
priority: priority,
expiryTimestamp: expiryTimestamp,
hopCount: hopCount,
flags: flags,
createdTimestamp: createdTimestamp,
folderPath: folderPath,
sequenceNumber: sequence,
messageFlags: messageFlags,
persistent: persistent,
);
}