NIMMessage.emptyMessage constructor Null safety

NIMMessage.emptyMessage(
  1. {required String sessionId,
  2. required NIMSessionType sessionType,
  3. 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);
}