NIMMessage.tipEmptyMessage constructor Null safety
- {required String sessionId,
- required NIMSessionType sessionType}
Implementation
factory NIMMessage.tipEmptyMessage(
{required String sessionId, required NIMSessionType sessionType}) {
return NIMMessage(
messageDirection: NIMMessageDirection.outgoing,
messageType: NIMMessageType.tip,
timestamp: new DateTime.now().millisecondsSinceEpoch,
status: NIMMessageStatus.sending,
sessionId: sessionId,
sessionType: sessionType);
}