NIMMessage.emptyMessage constructor Null safety
- {required String sessionId,
- required NIMSessionType sessionType,
- required int timestamp}
Implementation
factory NIMMessage.emptyMessage(
{required String sessionId,
required NIMSessionType sessionType,
required int timestamp}) {
return NIMMessage(
timestamp: timestamp,
sessionId: sessionId,
sessionType: sessionType,
messageType: NIMMessageType.undef,
messageDirection: NIMMessageDirection.outgoing);
}