generateSerialNumber static method
Generate a unique serial number (SN) for the message content.
msgType is the content type (used for type-specific SN generation).
now is the message timestamp (defaults to current time if null).
Returns a 64-bit unsigned integer (uint64) as the serial number.
Implementation
static int generateSerialNumber([String? msgType, DateTime? now]) {
final helper = sharedMessageExtensions.instantHelper;
return helper!.generateSerialNumber(msgType, now);
}