sendLocationMessage method Null safety
- {required String sessionId,
- required NIMSessionType sessionType,
- required double latitude,
- required double longitude,
- required String address,
- bool resend = false,
- MessageAction? action}
Send a location message.
Implementation
Future<NIMResult<NIMMessage>> sendLocationMessage({
required String sessionId,
required NIMSessionType sessionType,
required double latitude,
required double longitude,
required String address,
bool resend = false,
MessageAction? action,
}) async {
var message = NIMMessage.locationEmptyMessage(
sessionId: sessionId,
sessionType: sessionType,
latitude: latitude,
longitude: longitude,
address: address);
return _createMessageAndSend(message, action, resend);
}