createLocationMessage static method
- {required String sessionId,
- required NIMSessionType sessionType,
- required double latitude,
- required double longitude,
- required String address}
创建地理位置消息
Implementation
static Future<NIMResult<NIMMessage>> createLocationMessage(
{required String sessionId,
required NIMSessionType sessionType,
required double latitude,
required double longitude,
required String address}) async {
var message = NIMMessage.locationEmptyMessage(
sessionId: sessionId,
sessionType: sessionType,
latitude: latitude,
longitude: longitude,
address: address);
return NimCore.instance.messageService._createMessage(message: message);
}