createChatroomLocationMessage method Null safety

Future<NIMResult<NIMChatroomMessage>> createChatroomLocationMessage(
  1. {required String roomId,
  2. required double latitude,
  3. required double longitude,
  4. required String address}
)

Create a location message.

Implementation

static Future<NIMResult<NIMChatroomMessage>> createChatroomLocationMessage({
  required String roomId,
  required double latitude,
  required double longitude,
  required String address,
}) async {
  return NimCore.instance.chatroomService._createMessage({
    'roomId': roomId,
    'latitude': latitude,
    'longitude': longitude,
    'address': address,
    'messageType': 'location',
  });
}