sendLocationMessage method Null safety

Future<NIMResult<NIMMessage>> sendLocationMessage(
  1. {required String sessionId,
  2. required NIMSessionType sessionType,
  3. required double latitude,
  4. required double longitude,
  5. required String address,
  6. bool resend = false,
  7. 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);
}