NIMMessage.locationEmptyMessage constructor
Implementation
factory NIMMessage.locationEmptyMessage(
{required String sessionId,
required NIMSessionType sessionType,
required double latitude,
required double longitude,
required String address}) {
var locationAttachment = NIMLocationAttachment(
latitude: latitude, longitude: longitude, address: address);
return NIMMessage(
messageDirection: NIMMessageDirection.outgoing,
messageType: NIMMessageType.location,
timestamp: new DateTime.now().millisecondsSinceEpoch,
status: NIMMessageStatus.sending,
sessionId: sessionId,
sessionType: sessionType,
messageAttachment: locationAttachment,
attachmentStatus: NIMMessageAttachmentStatus.transferred);
}