ChatLocationMessageBody constructor

ChatLocationMessageBody(
  1. {required double latitude,
  2. required double longitude,
  3. String? address,
  4. String? buildingName}
)

Creates a location message body instance.

Param latitude The latitude.

Param longitude The longitude.

Param address The address.

Param buildingName The building name.

Implementation

ChatLocationMessageBody({
  required this.latitude,
  required this.longitude,
  String? address,
  String? buildingName,
}) : super(type: MessageType.LOCATION) {
  _address = address;
  _buildingName = buildingName;
}